Documentation ¶
Index ¶
- Variables
- func NewCanaryEndpoints() []*api.Endpoint
- func RegisterCanaryHandler(s server.Server, hdlr CanaryHandler, opts ...server.HandlerOption) error
- func RegisterCanaryWeb(r chi.Router, i CanaryHandler, middlewares ...func(http.Handler) http.Handler)
- type CanaryHandler
- type CanaryRequest
- func (*CanaryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CanaryRequest) GetVersion() string
- func (m *CanaryRequest) MarshalJSON() ([]byte, error)
- func (*CanaryRequest) ProtoMessage()
- func (x *CanaryRequest) ProtoReflect() protoreflect.Message
- func (x *CanaryRequest) Reset()
- func (x *CanaryRequest) String() string
- func (m *CanaryRequest) UnmarshalJSON(b []byte) error
- type CanaryResponse
- func (*CanaryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CanaryResponse) GetCookie() string
- func (x *CanaryResponse) GetErr() string
- func (x *CanaryResponse) GetTtl() int32
- func (m *CanaryResponse) MarshalJSON() ([]byte, error)
- func (*CanaryResponse) ProtoMessage()
- func (x *CanaryResponse) ProtoReflect() protoreflect.Message
- func (x *CanaryResponse) Reset()
- func (x *CanaryResponse) String() string
- func (m *CanaryResponse) UnmarshalJSON(b []byte) error
- type CanaryService
Constants ¶
This section is empty.
Variables ¶
var CanaryRequestJSONMarshaler = new(jsonpb.Marshaler)
CanaryRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of CanaryRequest. This struct is safe to replace or modify but should not be done so concurrently.
var CanaryRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)
CanaryRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of CanaryRequest. This struct is safe to replace or modify but should not be done so concurrently.
var CanaryResponseJSONMarshaler = new(jsonpb.Marshaler)
CanaryResponseJSONMarshaler describes the default jsonpb.Marshaler used by all instances of CanaryResponse. This struct is safe to replace or modify but should not be done so concurrently.
var CanaryResponseJSONUnmarshaler = new(jsonpb.Unmarshaler)
CanaryResponseJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of CanaryResponse. This struct is safe to replace or modify but should not be done so concurrently.
var File_canary_proto protoreflect.FileDescriptor
Functions ¶
func NewCanaryEndpoints ¶
func RegisterCanaryHandler ¶
func RegisterCanaryHandler(s server.Server, hdlr CanaryHandler, opts ...server.HandlerOption) error
func RegisterCanaryWeb ¶
Types ¶
type CanaryHandler ¶
type CanaryHandler interface {
SetCanary(context.Context, *CanaryRequest, *CanaryResponse) error
}
type CanaryRequest ¶
type CanaryRequest struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*CanaryRequest) Descriptor
deprecated
func (*CanaryRequest) Descriptor() ([]byte, []int)
Deprecated: Use CanaryRequest.ProtoReflect.Descriptor instead.
func (*CanaryRequest) GetVersion ¶
func (x *CanaryRequest) GetVersion() string
func (*CanaryRequest) MarshalJSON ¶
func (m *CanaryRequest) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*CanaryRequest) ProtoMessage ¶
func (*CanaryRequest) ProtoMessage()
func (*CanaryRequest) ProtoReflect ¶
func (x *CanaryRequest) ProtoReflect() protoreflect.Message
func (*CanaryRequest) Reset ¶
func (x *CanaryRequest) Reset()
func (*CanaryRequest) String ¶
func (x *CanaryRequest) String() string
func (*CanaryRequest) UnmarshalJSON ¶
func (m *CanaryRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type CanaryResponse ¶
type CanaryResponse struct { Err string `protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"` Ttl int32 `protobuf:"varint,2,opt,name=ttl,proto3" json:"ttl,omitempty"` Cookie string `protobuf:"bytes,3,opt,name=cookie,proto3" json:"cookie,omitempty"` // contains filtered or unexported fields }
func (*CanaryResponse) Descriptor
deprecated
func (*CanaryResponse) Descriptor() ([]byte, []int)
Deprecated: Use CanaryResponse.ProtoReflect.Descriptor instead.
func (*CanaryResponse) GetCookie ¶
func (x *CanaryResponse) GetCookie() string
func (*CanaryResponse) GetErr ¶
func (x *CanaryResponse) GetErr() string
func (*CanaryResponse) GetTtl ¶
func (x *CanaryResponse) GetTtl() int32
func (*CanaryResponse) MarshalJSON ¶
func (m *CanaryResponse) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*CanaryResponse) ProtoMessage ¶
func (*CanaryResponse) ProtoMessage()
func (*CanaryResponse) ProtoReflect ¶
func (x *CanaryResponse) ProtoReflect() protoreflect.Message
func (*CanaryResponse) Reset ¶
func (x *CanaryResponse) Reset()
func (*CanaryResponse) String ¶
func (x *CanaryResponse) String() string
func (*CanaryResponse) UnmarshalJSON ¶
func (m *CanaryResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type CanaryService ¶
type CanaryService interface {
SetCanary(ctx context.Context, in *CanaryRequest, opts ...client.CallOption) (*CanaryResponse, error)
}
func NewCanaryService ¶
func NewCanaryService(name string, c client.Client) CanaryService