Last active
February 17, 2016 03:37
-
-
Save keizo042/07d4f5de94f702447d09 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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