proto

package
v0.0.0-...-33f9496 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
var File_canary_proto protoreflect.FileDescriptor

Functions

func NewCanaryEndpoints

func NewCanaryEndpoints() []*api.Endpoint

func RegisterCanaryHandler

func RegisterCanaryHandler(s server.Server, hdlr CanaryHandler, opts ...server.HandlerOption) error

func RegisterCanaryWeb

func RegisterCanaryWeb(r chi.Router, i CanaryHandler, middlewares ...func(http.Handler) http.Handler)

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

Jump to

Keyboard shortcuts

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