Documentation ¶
Index ¶
- Variables
- func BuildMirrorInternalYARPCProcedures(server MirrorInternalYARPCServer) []transport.Procedure
- func BuildMirrorYARPCProcedures(server MirrorYARPCServer) []transport.Procedure
- func NewFxMirrorInternalYARPCClient(name string, options ...protobuf.ClientOption) interface{}
- func NewFxMirrorInternalYARPCProcedures() interface{}
- func NewFxMirrorYARPCClient(name string, options ...protobuf.ClientOption) interface{}
- func NewFxMirrorYARPCProcedures() interface{}
- type FxMirrorInternalYARPCClientParams
- type FxMirrorInternalYARPCClientResult
- type FxMirrorInternalYARPCProceduresParams
- type FxMirrorInternalYARPCProceduresResult
- type FxMirrorYARPCClientParams
- type FxMirrorYARPCClientResult
- type FxMirrorYARPCProceduresParams
- type FxMirrorYARPCProceduresResult
- type InternalRequest
- func (*InternalRequest) Descriptor() ([]byte, []int)
- func (this *InternalRequest) Equal(that interface{}) bool
- func (m *InternalRequest) GetMessage() string
- func (this *InternalRequest) GoString() string
- func (m *InternalRequest) Marshal() (dAtA []byte, err error)
- func (m *InternalRequest) MarshalTo(dAtA []byte) (int, error)
- func (*InternalRequest) ProtoMessage()
- func (m *InternalRequest) Reset()
- func (m *InternalRequest) Size() (n int)
- func (this *InternalRequest) String() string
- func (m *InternalRequest) Unmarshal(dAtA []byte) error
- func (m *InternalRequest) XXX_DiscardUnknown()
- func (m *InternalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InternalRequest) XXX_Merge(src proto.Message)
- func (m *InternalRequest) XXX_Size() int
- func (m *InternalRequest) XXX_Unmarshal(b []byte) error
- type InternalResponse
- func (*InternalResponse) Descriptor() ([]byte, []int)
- func (this *InternalResponse) Equal(that interface{}) bool
- func (m *InternalResponse) GetMessage() string
- func (this *InternalResponse) GoString() string
- func (m *InternalResponse) Marshal() (dAtA []byte, err error)
- func (m *InternalResponse) MarshalTo(dAtA []byte) (int, error)
- func (*InternalResponse) ProtoMessage()
- func (m *InternalResponse) Reset()
- func (m *InternalResponse) Size() (n int)
- func (this *InternalResponse) String() string
- func (m *InternalResponse) Unmarshal(dAtA []byte) error
- func (m *InternalResponse) XXX_DiscardUnknown()
- func (m *InternalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InternalResponse) XXX_Merge(src proto.Message)
- func (m *InternalResponse) XXX_Size() int
- func (m *InternalResponse) XXX_Unmarshal(b []byte) error
- type MirrorInternalYARPCClient
- type MirrorInternalYARPCServer
- type MirrorYARPCClient
- type MirrorYARPCServer
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (this *Request) Equal(that interface{}) bool
- func (m *Request) GetMessage() string
- func (this *Request) GoString() string
- func (m *Request) Marshal() (dAtA []byte, err error)
- func (m *Request) MarshalTo(dAtA []byte) (int, error)
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) Size() (n int)
- func (this *Request) String() string
- func (m *Request) Unmarshal(dAtA []byte) error
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (this *Response) Equal(that interface{}) bool
- func (m *Response) GetMessage() string
- func (this *Response) GoString() string
- func (m *Response) Marshal() (dAtA []byte, err error)
- func (m *Response) MarshalTo(dAtA []byte) (int, error)
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) Size() (n int)
- func (this *Response) String() string
- func (m *Response) Unmarshal(dAtA []byte) error
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthMirror = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMirror = fmt.Errorf("proto: integer overflow") )
Functions ¶
func BuildMirrorInternalYARPCProcedures ¶
func BuildMirrorInternalYARPCProcedures(server MirrorInternalYARPCServer) []transport.Procedure
BuildMirrorInternalYARPCProcedures prepares an implementation of the MirrorInternal service for YARPC registration.
func BuildMirrorYARPCProcedures ¶
func BuildMirrorYARPCProcedures(server MirrorYARPCServer) []transport.Procedure
BuildMirrorYARPCProcedures prepares an implementation of the Mirror service for YARPC registration.
func NewFxMirrorInternalYARPCClient ¶
func NewFxMirrorInternalYARPCClient(name string, options ...protobuf.ClientOption) interface{}
NewFxMirrorInternalYARPCClient provides a MirrorInternalYARPCClient to an Fx application using the given name for routing.
fx.Provide( mirror.NewFxMirrorInternalYARPCClient("service-name"), ... )
func NewFxMirrorInternalYARPCProcedures ¶
func NewFxMirrorInternalYARPCProcedures() interface{}
NewFxMirrorInternalYARPCProcedures provides MirrorInternalYARPCServer procedures to an Fx application. It expects a MirrorInternalYARPCServer to be present in the container.
fx.Provide( mirror.NewFxMirrorInternalYARPCProcedures(), ... )
func NewFxMirrorYARPCClient ¶
func NewFxMirrorYARPCClient(name string, options ...protobuf.ClientOption) interface{}
NewFxMirrorYARPCClient provides a MirrorYARPCClient to an Fx application using the given name for routing.
fx.Provide( mirror.NewFxMirrorYARPCClient("service-name"), ... )
func NewFxMirrorYARPCProcedures ¶
func NewFxMirrorYARPCProcedures() interface{}
NewFxMirrorYARPCProcedures provides MirrorYARPCServer procedures to an Fx application. It expects a MirrorYARPCServer to be present in the container.
fx.Provide( mirror.NewFxMirrorYARPCProcedures(), ... )
Types ¶
type FxMirrorInternalYARPCClientParams ¶
type FxMirrorInternalYARPCClientParams struct { fx.In Provider yarpc.ClientConfig AnyResolver jsonpb.AnyResolver `name:"yarpcfx" optional:"true"` Restriction restriction.Checker `optional:"true"` }
FxMirrorInternalYARPCClientParams defines the input for NewFxMirrorInternalYARPCClient. It provides the paramaters to get a MirrorInternalYARPCClient in an Fx application.
type FxMirrorInternalYARPCClientResult ¶
type FxMirrorInternalYARPCClientResult struct { fx.Out Client MirrorInternalYARPCClient }
FxMirrorInternalYARPCClientResult defines the output of NewFxMirrorInternalYARPCClient. It provides a MirrorInternalYARPCClient to an Fx application.
type FxMirrorInternalYARPCProceduresParams ¶
type FxMirrorInternalYARPCProceduresParams struct { fx.In Server MirrorInternalYARPCServer AnyResolver jsonpb.AnyResolver `name:"yarpcfx" optional:"true"` }
FxMirrorInternalYARPCProceduresParams defines the input for NewFxMirrorInternalYARPCProcedures. It provides the paramaters to get MirrorInternalYARPCServer procedures in an Fx application.
type FxMirrorInternalYARPCProceduresResult ¶
type FxMirrorInternalYARPCProceduresResult struct { fx.Out Procedures []transport.Procedure `group:"yarpcfx"` ReflectionMeta reflection.ServerMeta `group:"yarpcfx"` }
FxMirrorInternalYARPCProceduresResult defines the output of NewFxMirrorInternalYARPCProcedures. It provides MirrorInternalYARPCServer procedures to an Fx application.
The procedures are provided to the "yarpcfx" value group. Dig 1.2 or newer must be used for this feature to work.
type FxMirrorYARPCClientParams ¶
type FxMirrorYARPCClientParams struct { fx.In Provider yarpc.ClientConfig AnyResolver jsonpb.AnyResolver `name:"yarpcfx" optional:"true"` Restriction restriction.Checker `optional:"true"` }
FxMirrorYARPCClientParams defines the input for NewFxMirrorYARPCClient. It provides the paramaters to get a MirrorYARPCClient in an Fx application.
type FxMirrorYARPCClientResult ¶
type FxMirrorYARPCClientResult struct { fx.Out Client MirrorYARPCClient }
FxMirrorYARPCClientResult defines the output of NewFxMirrorYARPCClient. It provides a MirrorYARPCClient to an Fx application.
type FxMirrorYARPCProceduresParams ¶
type FxMirrorYARPCProceduresParams struct { fx.In Server MirrorYARPCServer AnyResolver jsonpb.AnyResolver `name:"yarpcfx" optional:"true"` }
FxMirrorYARPCProceduresParams defines the input for NewFxMirrorYARPCProcedures. It provides the paramaters to get MirrorYARPCServer procedures in an Fx application.
type FxMirrorYARPCProceduresResult ¶
type FxMirrorYARPCProceduresResult struct { fx.Out Procedures []transport.Procedure `group:"yarpcfx"` ReflectionMeta reflection.ServerMeta `group:"yarpcfx"` }
FxMirrorYARPCProceduresResult defines the output of NewFxMirrorYARPCProcedures. It provides MirrorYARPCServer procedures to an Fx application.
The procedures are provided to the "yarpcfx" value group. Dig 1.2 or newer must be used for this feature to work.
type InternalRequest ¶
type InternalRequest struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
}
func (*InternalRequest) Descriptor ¶
func (*InternalRequest) Descriptor() ([]byte, []int)
func (*InternalRequest) Equal ¶
func (this *InternalRequest) Equal(that interface{}) bool
func (*InternalRequest) GetMessage ¶
func (m *InternalRequest) GetMessage() string
func (*InternalRequest) GoString ¶
func (this *InternalRequest) GoString() string
func (*InternalRequest) Marshal ¶
func (m *InternalRequest) Marshal() (dAtA []byte, err error)
func (*InternalRequest) ProtoMessage ¶
func (*InternalRequest) ProtoMessage()
func (*InternalRequest) Reset ¶
func (m *InternalRequest) Reset()
func (*InternalRequest) Size ¶
func (m *InternalRequest) Size() (n int)
func (*InternalRequest) String ¶
func (this *InternalRequest) String() string
func (*InternalRequest) Unmarshal ¶
func (m *InternalRequest) Unmarshal(dAtA []byte) error
func (*InternalRequest) XXX_DiscardUnknown ¶
func (m *InternalRequest) XXX_DiscardUnknown()
func (*InternalRequest) XXX_Marshal ¶
func (m *InternalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InternalRequest) XXX_Merge ¶
func (m *InternalRequest) XXX_Merge(src proto.Message)
func (*InternalRequest) XXX_Size ¶
func (m *InternalRequest) XXX_Size() int
func (*InternalRequest) XXX_Unmarshal ¶
func (m *InternalRequest) XXX_Unmarshal(b []byte) error
type InternalResponse ¶
type InternalResponse struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
}
func (*InternalResponse) Descriptor ¶
func (*InternalResponse) Descriptor() ([]byte, []int)
func (*InternalResponse) Equal ¶
func (this *InternalResponse) Equal(that interface{}) bool
func (*InternalResponse) GetMessage ¶
func (m *InternalResponse) GetMessage() string
func (*InternalResponse) GoString ¶
func (this *InternalResponse) GoString() string
func (*InternalResponse) Marshal ¶
func (m *InternalResponse) Marshal() (dAtA []byte, err error)
func (*InternalResponse) ProtoMessage ¶
func (*InternalResponse) ProtoMessage()
func (*InternalResponse) Reset ¶
func (m *InternalResponse) Reset()
func (*InternalResponse) Size ¶
func (m *InternalResponse) Size() (n int)
func (*InternalResponse) String ¶
func (this *InternalResponse) String() string
func (*InternalResponse) Unmarshal ¶
func (m *InternalResponse) Unmarshal(dAtA []byte) error
func (*InternalResponse) XXX_DiscardUnknown ¶
func (m *InternalResponse) XXX_DiscardUnknown()
func (*InternalResponse) XXX_Marshal ¶
func (m *InternalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InternalResponse) XXX_Merge ¶
func (m *InternalResponse) XXX_Merge(src proto.Message)
func (*InternalResponse) XXX_Size ¶
func (m *InternalResponse) XXX_Size() int
func (*InternalResponse) XXX_Unmarshal ¶
func (m *InternalResponse) XXX_Unmarshal(b []byte) error
type MirrorInternalYARPCClient ¶
type MirrorInternalYARPCClient interface {
Mirror(context.Context, *InternalRequest, ...yarpc.CallOption) (*InternalResponse, error)
}
MirrorInternalYARPCClient is the YARPC client-side interface for the MirrorInternal service.
func NewMirrorInternalYARPCClient ¶
func NewMirrorInternalYARPCClient(clientConfig transport.ClientConfig, options ...protobuf.ClientOption) MirrorInternalYARPCClient
NewMirrorInternalYARPCClient builds a new YARPC client for the MirrorInternal service.
type MirrorInternalYARPCServer ¶
type MirrorInternalYARPCServer interface {
Mirror(context.Context, *InternalRequest) (*InternalResponse, error)
}
MirrorInternalYARPCServer is the YARPC server-side interface for the MirrorInternal service.
type MirrorYARPCClient ¶
type MirrorYARPCClient interface {
Mirror(context.Context, *Request, ...yarpc.CallOption) (*Response, error)
}
MirrorYARPCClient is the YARPC client-side interface for the Mirror service.
func NewMirrorYARPCClient ¶
func NewMirrorYARPCClient(clientConfig transport.ClientConfig, options ...protobuf.ClientOption) MirrorYARPCClient
NewMirrorYARPCClient builds a new YARPC client for the Mirror service.
type MirrorYARPCServer ¶
MirrorYARPCServer is the YARPC server-side interface for the Mirror service.
type Request ¶
type Request struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
}
func (*Request) Descriptor ¶
func (*Request) GetMessage ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type Response ¶
type Response struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
}
func (*Response) Descriptor ¶
func (*Response) GetMessage ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()