Skip to content

Instantly share code, notes, and snippets.

@keizo042
Last active February 17, 2016 03:37
Show Gist options
  • Save keizo042/07d4f5de94f702447d09 to your computer and use it in GitHub Desktop.
Save keizo042/07d4f5de94f702447d09 to your computer and use it in GitHub Desktop.
class VCL
attr_accessor :resp, :beresp, :req, :bereq, :import, :obj, :client
def initialize
@resp = nil
@beresp = nil
@req = nil
@bereq = VCL::HTTP.new
@import = nil
@obj = nil
@client
end
class << self
def init(&proc)
end
def recv(&proc)
end
def pass(&proc)
end
def init(&proc)
end
def hash(&proc)
end
def purge(&proc)
end
def deliver(&proc)
end
def synth(&proc)
end
def fini(&proc)
end
end
class Backend
attr_accessor :host, :port, :host_header, :connect_timeout, :first_byte_timeout, :between_bytes_timeout, :prob, :max_connections
class << self
def fetch
end
def responce
end
def error
end
end
class Probe
attr :url, :timeout, :interval, :window, :threshhold, :expected_responce, :initial
def initialize
end
end
end
class Actions << VCL
class Init
attr :pass, :hit
end
class Hash
end
class Pipe
end
class Deliver
end
class Purge
end
class Miss
end
class Hit
end
class Restart
end
class Synth
end
class Retry
end
end
class ACL
attr_accessor :name, :network, :router
def initialize
end
end
class HTTP
attr :test
end
class TCP
end
class Std
end
class Directors
end
end
class Varnish
class Param
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment