acmechallenges

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package acmechallenges is a generated twirp stub package. This code was generated with github.com/twitchtv/twirp/protoc-gen-twirp v5.4.2.

It is generated from these files:

rpc/acmechallenges/service.proto

Index

Constants

View Source
const AcmeChallengesPathPrefix = "/twirp/jswc.acmechallenges.AcmeChallenges/"

AcmeChallengesPathPrefix is used for all URL paths on a twirp AcmeChallenges server. Requests are always: POST AcmeChallengesPathPrefix/method It can be used in an HTTP mux to route twirp requests along with non-twirp requests on other routes.

Variables

This section is empty.

Functions

func WriteError

func WriteError(resp http.ResponseWriter, err error)

WriteError writes an HTTP response with a valid Twirp error format. If err is not a twirp.Error, it will get wrapped with twirp.InternalErrorWith(err)

Types

type AcmeChallenges

func NewAcmeChallengesJSONClient

func NewAcmeChallengesJSONClient(addr string, client HTTPClient) AcmeChallenges

NewAcmeChallengesJSONClient creates a JSON client that implements the AcmeChallenges interface. It communicates using JSON and can be configured with a custom HTTPClient.

func NewAcmeChallengesProtobufClient

func NewAcmeChallengesProtobufClient(addr string, client HTTPClient) AcmeChallenges

NewAcmeChallengesProtobufClient creates a Protobuf client that implements the AcmeChallenges interface. It communicates using Protobuf and can be configured with a custom HTTPClient.

type Auth

type Auth struct {
	Token                string   `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Auth) Descriptor

func (*Auth) Descriptor() ([]byte, []int)

func (*Auth) GetToken

func (m *Auth) GetToken() string

func (*Auth) ProtoMessage

func (*Auth) ProtoMessage()

func (*Auth) Reset

func (m *Auth) Reset()

func (*Auth) String

func (m *Auth) String() string

func (*Auth) XXX_DiscardUnknown

func (m *Auth) XXX_DiscardUnknown()

func (*Auth) XXX_Marshal

func (m *Auth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Auth) XXX_Merge

func (dst *Auth) XXX_Merge(src proto.Message)

func (*Auth) XXX_Size

func (m *Auth) XXX_Size() int

func (*Auth) XXX_Unmarshal

func (m *Auth) XXX_Unmarshal(b []byte) error

type CleanDNSRequest

type CleanDNSRequest struct {
	Auth                 *Auth    `protobuf:"bytes,1,opt,name=auth,proto3" json:"auth,omitempty"`
	Domain               string   `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	AltName              string   `protobuf:"bytes,3,opt,name=alt_name,json=altName,proto3" json:"alt_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CleanDNSRequest) Descriptor

func (*CleanDNSRequest) Descriptor() ([]byte, []int)

func (*CleanDNSRequest) GetAltName

func (m *CleanDNSRequest) GetAltName() string

func (*CleanDNSRequest) GetAuth

func (m *CleanDNSRequest) GetAuth() *Auth

func (*CleanDNSRequest) GetDomain

func (m *CleanDNSRequest) GetDomain() string

func (*CleanDNSRequest) ProtoMessage

func (*CleanDNSRequest) ProtoMessage()

func (*CleanDNSRequest) Reset

func (m *CleanDNSRequest) Reset()

func (*CleanDNSRequest) String

func (m *CleanDNSRequest) String() string

func (*CleanDNSRequest) XXX_DiscardUnknown

func (m *CleanDNSRequest) XXX_DiscardUnknown()

func (*CleanDNSRequest) XXX_Marshal

func (m *CleanDNSRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CleanDNSRequest) XXX_Merge

func (dst *CleanDNSRequest) XXX_Merge(src proto.Message)

func (*CleanDNSRequest) XXX_Size

func (m *CleanDNSRequest) XXX_Size() int

func (*CleanDNSRequest) XXX_Unmarshal

func (m *CleanDNSRequest) XXX_Unmarshal(b []byte) error

type CleanHTTPRequest

type CleanHTTPRequest struct {
	Auth                 *Auth    `protobuf:"bytes,1,opt,name=auth,proto3" json:"auth,omitempty"`
	Token                string   `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CleanHTTPRequest) Descriptor

func (*CleanHTTPRequest) Descriptor() ([]byte, []int)

func (*CleanHTTPRequest) GetAuth

func (m *CleanHTTPRequest) GetAuth() *Auth

func (*CleanHTTPRequest) GetToken

func (m *CleanHTTPRequest) GetToken() string

func (*CleanHTTPRequest) ProtoMessage

func (*CleanHTTPRequest) ProtoMessage()

func (*CleanHTTPRequest) Reset

func (m *CleanHTTPRequest) Reset()

func (*CleanHTTPRequest) String

func (m *CleanHTTPRequest) String() string

func (*CleanHTTPRequest) XXX_DiscardUnknown

func (m *CleanHTTPRequest) XXX_DiscardUnknown()

func (*CleanHTTPRequest) XXX_Marshal

func (m *CleanHTTPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CleanHTTPRequest) XXX_Merge

func (dst *CleanHTTPRequest) XXX_Merge(src proto.Message)

func (*CleanHTTPRequest) XXX_Size

func (m *CleanHTTPRequest) XXX_Size() int

func (*CleanHTTPRequest) XXX_Unmarshal

func (m *CleanHTTPRequest) XXX_Unmarshal(b []byte) error

type DeployDNSRequest

type DeployDNSRequest struct {
	Auth                 *Auth    `protobuf:"bytes,1,opt,name=auth,proto3" json:"auth,omitempty"`
	Domain               string   `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	AltName              string   `protobuf:"bytes,3,opt,name=alt_name,json=altName,proto3" json:"alt_name,omitempty"`
	Value                string   `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeployDNSRequest) Descriptor

func (*DeployDNSRequest) Descriptor() ([]byte, []int)

func (*DeployDNSRequest) GetAltName

func (m *DeployDNSRequest) GetAltName() string

func (*DeployDNSRequest) GetAuth

func (m *DeployDNSRequest) GetAuth() *Auth

func (*DeployDNSRequest) GetDomain

func (m *DeployDNSRequest) GetDomain() string

func (*DeployDNSRequest) GetValue

func (m *DeployDNSRequest) GetValue() string

func (*DeployDNSRequest) ProtoMessage

func (*DeployDNSRequest) ProtoMessage()

func (*DeployDNSRequest) Reset

func (m *DeployDNSRequest) Reset()

func (*DeployDNSRequest) String

func (m *DeployDNSRequest) String() string

func (*DeployDNSRequest) XXX_DiscardUnknown

func (m *DeployDNSRequest) XXX_DiscardUnknown()

func (*DeployDNSRequest) XXX_Marshal

func (m *DeployDNSRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeployDNSRequest) XXX_Merge

func (dst *DeployDNSRequest) XXX_Merge(src proto.Message)

func (*DeployDNSRequest) XXX_Size

func (m *DeployDNSRequest) XXX_Size() int

func (*DeployDNSRequest) XXX_Unmarshal

func (m *DeployDNSRequest) XXX_Unmarshal(b []byte) error

type DeployHTTPRequest

type DeployHTTPRequest struct {
	Auth                 *Auth    `protobuf:"bytes,1,opt,name=auth,proto3" json:"auth,omitempty"`
	Token                string   `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	Value                string   `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeployHTTPRequest) Descriptor

func (*DeployHTTPRequest) Descriptor() ([]byte, []int)

func (*DeployHTTPRequest) GetAuth

func (m *DeployHTTPRequest) GetAuth() *Auth

func (*DeployHTTPRequest) GetToken

func (m *DeployHTTPRequest) GetToken() string

func (*DeployHTTPRequest) GetValue

func (m *DeployHTTPRequest) GetValue() string

func (*DeployHTTPRequest) ProtoMessage

func (*DeployHTTPRequest) ProtoMessage()

func (*DeployHTTPRequest) Reset

func (m *DeployHTTPRequest) Reset()

func (*DeployHTTPRequest) String

func (m *DeployHTTPRequest) String() string

func (*DeployHTTPRequest) XXX_DiscardUnknown

func (m *DeployHTTPRequest) XXX_DiscardUnknown()

func (*DeployHTTPRequest) XXX_Marshal

func (m *DeployHTTPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeployHTTPRequest) XXX_Merge

func (dst *DeployHTTPRequest) XXX_Merge(src proto.Message)

func (*DeployHTTPRequest) XXX_Size

func (m *DeployHTTPRequest) XXX_Size() int

func (*DeployHTTPRequest) XXX_Unmarshal

func (m *DeployHTTPRequest) XXX_Unmarshal(b []byte) error

type EmptyMessage

type EmptyMessage struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EmptyMessage) Descriptor

func (*EmptyMessage) Descriptor() ([]byte, []int)

func (*EmptyMessage) ProtoMessage

func (*EmptyMessage) ProtoMessage()

func (*EmptyMessage) Reset

func (m *EmptyMessage) Reset()

func (*EmptyMessage) String

func (m *EmptyMessage) String() string

func (*EmptyMessage) XXX_DiscardUnknown

func (m *EmptyMessage) XXX_DiscardUnknown()

func (*EmptyMessage) XXX_Marshal

func (m *EmptyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EmptyMessage) XXX_Merge

func (dst *EmptyMessage) XXX_Merge(src proto.Message)

func (*EmptyMessage) XXX_Size

func (m *EmptyMessage) XXX_Size() int

func (*EmptyMessage) XXX_Unmarshal

func (m *EmptyMessage) XXX_Unmarshal(b []byte) error

type GetHTTPRequest

type GetHTTPRequest struct {
	Token                string   `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetHTTPRequest) Descriptor

func (*GetHTTPRequest) Descriptor() ([]byte, []int)

func (*GetHTTPRequest) GetToken

func (m *GetHTTPRequest) GetToken() string

func (*GetHTTPRequest) ProtoMessage

func (*GetHTTPRequest) ProtoMessage()

func (*GetHTTPRequest) Reset

func (m *GetHTTPRequest) Reset()

func (*GetHTTPRequest) String

func (m *GetHTTPRequest) String() string

func (*GetHTTPRequest) XXX_DiscardUnknown

func (m *GetHTTPRequest) XXX_DiscardUnknown()

func (*GetHTTPRequest) XXX_Marshal

func (m *GetHTTPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetHTTPRequest) XXX_Merge

func (dst *GetHTTPRequest) XXX_Merge(src proto.Message)

func (*GetHTTPRequest) XXX_Size

func (m *GetHTTPRequest) XXX_Size() int

func (*GetHTTPRequest) XXX_Unmarshal

func (m *GetHTTPRequest) XXX_Unmarshal(b []byte) error

type GetHTTPResponse

type GetHTTPResponse struct {
	Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetHTTPResponse) Descriptor

func (*GetHTTPResponse) Descriptor() ([]byte, []int)

func (*GetHTTPResponse) GetValue

func (m *GetHTTPResponse) GetValue() string

func (*GetHTTPResponse) ProtoMessage

func (*GetHTTPResponse) ProtoMessage()

func (*GetHTTPResponse) Reset

func (m *GetHTTPResponse) Reset()

func (*GetHTTPResponse) String

func (m *GetHTTPResponse) String() string

func (*GetHTTPResponse) XXX_DiscardUnknown

func (m *GetHTTPResponse) XXX_DiscardUnknown()

func (*GetHTTPResponse) XXX_Marshal

func (m *GetHTTPResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetHTTPResponse) XXX_Merge

func (dst *GetHTTPResponse) XXX_Merge(src proto.Message)

func (*GetHTTPResponse) XXX_Size

func (m *GetHTTPResponse) XXX_Size() int

func (*GetHTTPResponse) XXX_Unmarshal

func (m *GetHTTPResponse) XXX_Unmarshal(b []byte) error

type GetVersionRequest

type GetVersionRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetVersionRequest) Descriptor

func (*GetVersionRequest) Descriptor() ([]byte, []int)

func (*GetVersionRequest) ProtoMessage

func (*GetVersionRequest) ProtoMessage()

func (*GetVersionRequest) Reset

func (m *GetVersionRequest) Reset()

func (*GetVersionRequest) String

func (m *GetVersionRequest) String() string

func (*GetVersionRequest) XXX_DiscardUnknown

func (m *GetVersionRequest) XXX_DiscardUnknown()

func (*GetVersionRequest) XXX_Marshal

func (m *GetVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetVersionRequest) XXX_Merge

func (dst *GetVersionRequest) XXX_Merge(src proto.Message)

func (*GetVersionRequest) XXX_Size

func (m *GetVersionRequest) XXX_Size() int

func (*GetVersionRequest) XXX_Unmarshal

func (m *GetVersionRequest) XXX_Unmarshal(b []byte) error

type GetVersionResponse

type GetVersionResponse struct {
	Version              string   `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	BuildTime            string   `protobuf:"bytes,2,opt,name=build_time,json=buildTime,proto3" json:"build_time,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetVersionResponse) Descriptor

func (*GetVersionResponse) Descriptor() ([]byte, []int)

func (*GetVersionResponse) GetBuildTime

func (m *GetVersionResponse) GetBuildTime() string

func (*GetVersionResponse) GetVersion

func (m *GetVersionResponse) GetVersion() string

func (*GetVersionResponse) ProtoMessage

func (*GetVersionResponse) ProtoMessage()

func (*GetVersionResponse) Reset

func (m *GetVersionResponse) Reset()

func (*GetVersionResponse) String

func (m *GetVersionResponse) String() string

func (*GetVersionResponse) XXX_DiscardUnknown

func (m *GetVersionResponse) XXX_DiscardUnknown()

func (*GetVersionResponse) XXX_Marshal

func (m *GetVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetVersionResponse) XXX_Merge

func (dst *GetVersionResponse) XXX_Merge(src proto.Message)

func (*GetVersionResponse) XXX_Size

func (m *GetVersionResponse) XXX_Size() int

func (*GetVersionResponse) XXX_Unmarshal

func (m *GetVersionResponse) XXX_Unmarshal(b []byte) error

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

HTTPClient is the interface used by generated clients to send HTTP requests. It is fulfilled by *(net/http).Client, which is sufficient for most users. Users can provide their own implementation for special retry policies.

HTTPClient implementations should not follow redirects. Redirects are automatically disabled if *(net/http).Client is passed to client constructors. See the withoutRedirects function in this file for more details.

type NotifyDNSRequest

type NotifyDNSRequest struct {
	Auth                 *Auth    `protobuf:"bytes,1,opt,name=auth,proto3" json:"auth,omitempty"`
	Domain               string   `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	AltName              string   `protobuf:"bytes,3,opt,name=alt_name,json=altName,proto3" json:"alt_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NotifyDNSRequest) Descriptor

func (*NotifyDNSRequest) Descriptor() ([]byte, []int)

func (*NotifyDNSRequest) GetAltName

func (m *NotifyDNSRequest) GetAltName() string

func (*NotifyDNSRequest) GetAuth

func (m *NotifyDNSRequest) GetAuth() *Auth

func (*NotifyDNSRequest) GetDomain

func (m *NotifyDNSRequest) GetDomain() string

func (*NotifyDNSRequest) ProtoMessage

func (*NotifyDNSRequest) ProtoMessage()

func (*NotifyDNSRequest) Reset

func (m *NotifyDNSRequest) Reset()

func (*NotifyDNSRequest) String

func (m *NotifyDNSRequest) String() string

func (*NotifyDNSRequest) XXX_DiscardUnknown

func (m *NotifyDNSRequest) XXX_DiscardUnknown()

func (*NotifyDNSRequest) XXX_Marshal

func (m *NotifyDNSRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NotifyDNSRequest) XXX_Merge

func (dst *NotifyDNSRequest) XXX_Merge(src proto.Message)

func (*NotifyDNSRequest) XXX_Size

func (m *NotifyDNSRequest) XXX_Size() int

func (*NotifyDNSRequest) XXX_Unmarshal

func (m *NotifyDNSRequest) XXX_Unmarshal(b []byte) error

type TwirpServer

type TwirpServer interface {
	http.Handler
	// ServiceDescriptor returns gzipped bytes describing the .proto file that
	// this service was generated from. Once unzipped, the bytes can be
	// unmarshalled as a
	// github.com/golang/protobuf/protoc-gen-go/descriptor.FileDescriptorProto.
	//
	// The returned integer is the index of this particular service within that
	// FileDescriptorProto's 'Service' slice of ServiceDescriptorProtos. This is a
	// low-level field, expected to be used for reflection.
	ServiceDescriptor() ([]byte, int)
	// ProtocGenTwirpVersion is the semantic version string of the version of
	// twirp used to generate this file.
	ProtocGenTwirpVersion() string
}

TwirpServer is the interface generated server structs will support: they're HTTP handlers with additional methods for accessing metadata about the service. Those accessors are a low-level API for building reflection tools. Most people can think of TwirpServers as just http.Handlers.

func NewAcmeChallengesServer

func NewAcmeChallengesServer(svc AcmeChallenges, hooks *twirp.ServerHooks) TwirpServer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL