Documentation ¶
Index ¶
- func BuildEchoerFunc(grpccli chatterpb.ChatterClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
- func BuildEchoerPayload(chatterEchoerToken string) (*chatter.EchoerPayload, error)
- func BuildHistoryFunc(grpccli chatterpb.ChatterClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
- func BuildHistoryPayload(chatterHistoryView string, chatterHistoryToken string) (*chatter.HistoryPayload, error)
- func BuildListenerFunc(grpccli chatterpb.ChatterClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
- func BuildListenerPayload(chatterListenerToken string) (*chatter.ListenerPayload, error)
- func BuildLoginFunc(grpccli chatterpb.ChatterClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
- func BuildLoginPayload(chatterLoginUser string, chatterLoginPassword string) (*chatter.LoginPayload, error)
- func BuildSubscribeFunc(grpccli chatterpb.ChatterClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
- func BuildSubscribePayload(chatterSubscribeToken string) (*chatter.SubscribePayload, error)
- func BuildSummaryFunc(grpccli chatterpb.ChatterClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
- func BuildSummaryPayload(chatterSummaryToken string) (*chatter.SummaryPayload, error)
- func DecodeEchoerResponse(ctx context.Context, v any, hdr, trlr metadata.MD) (any, error)
- func DecodeHistoryResponse(ctx context.Context, v any, hdr, trlr metadata.MD) (any, error)
- func DecodeListenerResponse(ctx context.Context, v any, hdr, trlr metadata.MD) (any, error)
- func DecodeLoginResponse(ctx context.Context, v any, hdr, trlr metadata.MD) (any, error)
- func DecodeSubscribeResponse(ctx context.Context, v any, hdr, trlr metadata.MD) (any, error)
- func DecodeSummaryResponse(ctx context.Context, v any, hdr, trlr metadata.MD) (any, error)
- func EncodeEchoerRequest(ctx context.Context, v any, md *metadata.MD) (any, error)
- func EncodeHistoryRequest(ctx context.Context, v any, md *metadata.MD) (any, error)
- func EncodeListenerRequest(ctx context.Context, v any, md *metadata.MD) (any, error)
- func EncodeLoginRequest(ctx context.Context, v any, md *metadata.MD) (any, error)
- func EncodeSubscribeRequest(ctx context.Context, v any, md *metadata.MD) (any, error)
- func EncodeSummaryRequest(ctx context.Context, v any, md *metadata.MD) (any, error)
- func NewChatSummaryCollectionChatSummaryCollection(v *chatterpb.ChatSummaryCollection) chatterviews.ChatSummaryCollectionView
- func NewEchoerResponseEchoerResponse(v *chatterpb.EchoerResponse) string
- func NewHistoryResponseChatSummaryView(v *chatterpb.HistoryResponse) *chatterviews.ChatSummaryView
- func NewLoginResult(message *chatterpb.LoginResponse) string
- func NewProtoEchoerStreamingRequest(spayload string) *chatterpb.EchoerStreamingRequest
- func NewProtoHistoryRequest() *chatterpb.HistoryRequest
- func NewProtoListenerStreamingRequest(spayload string) *chatterpb.ListenerStreamingRequest
- func NewProtoLoginRequest() *chatterpb.LoginRequest
- func NewProtoSubscribeRequest() *chatterpb.SubscribeRequest
- func NewProtoSummaryStreamingRequest(spayload string) *chatterpb.SummaryStreamingRequest
- func NewSubscribeResponseEvent(v *chatterpb.SubscribeResponse) *chatter.Event
- func ValidateChatSummary(elem *chatterpb.ChatSummary) (err error)
- func ValidateChatSummaryCollection(stream *chatterpb.ChatSummaryCollection) (err error)
- func ValidateHistoryResponse(stream *chatterpb.HistoryResponse) (err error)
- func ValidateSubscribeResponse(stream *chatterpb.SubscribeResponse) (err error)
- type Client
- type EchoerClientStream
- type HistoryClientStream
- type ListenerClientStream
- type SubscribeClientStream
- type SummaryClientStream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildEchoerFunc ¶
func BuildEchoerFunc(grpccli chatterpb.ChatterClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
BuildEchoerFunc builds the remote method to invoke for "chatter" service "echoer" endpoint.
func BuildEchoerPayload ¶
func BuildEchoerPayload(chatterEchoerToken string) (*chatter.EchoerPayload, error)
BuildEchoerPayload builds the payload for the chatter echoer endpoint from CLI flags.
func BuildHistoryFunc ¶
func BuildHistoryFunc(grpccli chatterpb.ChatterClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
BuildHistoryFunc builds the remote method to invoke for "chatter" service "history" endpoint.
func BuildHistoryPayload ¶
func BuildHistoryPayload(chatterHistoryView string, chatterHistoryToken string) (*chatter.HistoryPayload, error)
BuildHistoryPayload builds the payload for the chatter history endpoint from CLI flags.
func BuildListenerFunc ¶
func BuildListenerFunc(grpccli chatterpb.ChatterClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
BuildListenerFunc builds the remote method to invoke for "chatter" service "listener" endpoint.
func BuildListenerPayload ¶
func BuildListenerPayload(chatterListenerToken string) (*chatter.ListenerPayload, error)
BuildListenerPayload builds the payload for the chatter listener endpoint from CLI flags.
func BuildLoginFunc ¶
func BuildLoginFunc(grpccli chatterpb.ChatterClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
BuildLoginFunc builds the remote method to invoke for "chatter" service "login" endpoint.
func BuildLoginPayload ¶
func BuildLoginPayload(chatterLoginUser string, chatterLoginPassword string) (*chatter.LoginPayload, error)
BuildLoginPayload builds the payload for the chatter login endpoint from CLI flags.
func BuildSubscribeFunc ¶
func BuildSubscribeFunc(grpccli chatterpb.ChatterClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
BuildSubscribeFunc builds the remote method to invoke for "chatter" service "subscribe" endpoint.
func BuildSubscribePayload ¶
func BuildSubscribePayload(chatterSubscribeToken string) (*chatter.SubscribePayload, error)
BuildSubscribePayload builds the payload for the chatter subscribe endpoint from CLI flags.
func BuildSummaryFunc ¶
func BuildSummaryFunc(grpccli chatterpb.ChatterClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
BuildSummaryFunc builds the remote method to invoke for "chatter" service "summary" endpoint.
func BuildSummaryPayload ¶
func BuildSummaryPayload(chatterSummaryToken string) (*chatter.SummaryPayload, error)
BuildSummaryPayload builds the payload for the chatter summary endpoint from CLI flags.
func DecodeEchoerResponse ¶
DecodeEchoerResponse decodes responses from the chatter echoer endpoint.
func DecodeHistoryResponse ¶
DecodeHistoryResponse decodes responses from the chatter history endpoint.
func DecodeListenerResponse ¶
DecodeListenerResponse decodes responses from the chatter listener endpoint.
func DecodeLoginResponse ¶
DecodeLoginResponse decodes responses from the chatter login endpoint.
func DecodeSubscribeResponse ¶
DecodeSubscribeResponse decodes responses from the chatter subscribe endpoint.
func DecodeSummaryResponse ¶
DecodeSummaryResponse decodes responses from the chatter summary endpoint.
func EncodeEchoerRequest ¶
EncodeEchoerRequest encodes requests sent to chatter echoer endpoint.
func EncodeHistoryRequest ¶
EncodeHistoryRequest encodes requests sent to chatter history endpoint.
func EncodeListenerRequest ¶
EncodeListenerRequest encodes requests sent to chatter listener endpoint.
func EncodeLoginRequest ¶
EncodeLoginRequest encodes requests sent to chatter login endpoint.
func EncodeSubscribeRequest ¶
EncodeSubscribeRequest encodes requests sent to chatter subscribe endpoint.
func EncodeSummaryRequest ¶
EncodeSummaryRequest encodes requests sent to chatter summary endpoint.
func NewChatSummaryCollectionChatSummaryCollection ¶
func NewChatSummaryCollectionChatSummaryCollection(v *chatterpb.ChatSummaryCollection) chatterviews.ChatSummaryCollectionView
func NewEchoerResponseEchoerResponse ¶
func NewEchoerResponseEchoerResponse(v *chatterpb.EchoerResponse) string
func NewHistoryResponseChatSummaryView ¶
func NewHistoryResponseChatSummaryView(v *chatterpb.HistoryResponse) *chatterviews.ChatSummaryView
func NewLoginResult ¶
func NewLoginResult(message *chatterpb.LoginResponse) string
NewLoginResult builds the result type of the "login" endpoint of the "chatter" service from the gRPC response type.
func NewProtoEchoerStreamingRequest ¶
func NewProtoEchoerStreamingRequest(spayload string) *chatterpb.EchoerStreamingRequest
func NewProtoHistoryRequest ¶
func NewProtoHistoryRequest() *chatterpb.HistoryRequest
NewProtoHistoryRequest builds the gRPC request type from the payload of the "history" endpoint of the "chatter" service.
func NewProtoListenerStreamingRequest ¶
func NewProtoListenerStreamingRequest(spayload string) *chatterpb.ListenerStreamingRequest
func NewProtoLoginRequest ¶
func NewProtoLoginRequest() *chatterpb.LoginRequest
NewProtoLoginRequest builds the gRPC request type from the payload of the "login" endpoint of the "chatter" service.
func NewProtoSubscribeRequest ¶
func NewProtoSubscribeRequest() *chatterpb.SubscribeRequest
NewProtoSubscribeRequest builds the gRPC request type from the payload of the "subscribe" endpoint of the "chatter" service.
func NewProtoSummaryStreamingRequest ¶
func NewProtoSummaryStreamingRequest(spayload string) *chatterpb.SummaryStreamingRequest
func NewSubscribeResponseEvent ¶
func NewSubscribeResponseEvent(v *chatterpb.SubscribeResponse) *chatter.Event
func ValidateChatSummary ¶
func ValidateChatSummary(elem *chatterpb.ChatSummary) (err error)
ValidateChatSummary runs the validations defined on ChatSummary.
func ValidateChatSummaryCollection ¶
func ValidateChatSummaryCollection(stream *chatterpb.ChatSummaryCollection) (err error)
ValidateChatSummaryCollection runs the validations defined on ChatSummaryCollection.
func ValidateHistoryResponse ¶
func ValidateHistoryResponse(stream *chatterpb.HistoryResponse) (err error)
ValidateHistoryResponse runs the validations defined on HistoryResponse.
func ValidateSubscribeResponse ¶
func ValidateSubscribeResponse(stream *chatterpb.SubscribeResponse) (err error)
ValidateSubscribeResponse runs the validations defined on SubscribeResponse.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client lists the service endpoint gRPC clients.
func NewClient ¶
func NewClient(cc *grpc.ClientConn, opts ...grpc.CallOption) *Client
NewClient instantiates gRPC client for all the chatter service servers.
func (*Client) Listener ¶
Listener calls the "Listener" function in chatterpb.ChatterClient interface.
type EchoerClientStream ¶
type EchoerClientStream struct {
// contains filtered or unexported fields
}
EchoerClientStream implements the chatter.EchoerClientStream interface.
func (*EchoerClientStream) Close ¶
func (s *EchoerClientStream) Close() error
func (*EchoerClientStream) Recv ¶
func (s *EchoerClientStream) Recv() (string, error)
Recv reads instances of "chatterpb.EchoerResponse" from the "echoer" endpoint gRPC stream.
func (*EchoerClientStream) Send ¶
func (s *EchoerClientStream) Send(res string) error
Send streams instances of "chatterpb.EchoerStreamingRequest" to the "echoer" endpoint gRPC stream.
type HistoryClientStream ¶
type HistoryClientStream struct {
// contains filtered or unexported fields
}
HistoryClientStream implements the chatter.HistoryClientStream interface.
func (*HistoryClientStream) Recv ¶
func (s *HistoryClientStream) Recv() (*chatter.ChatSummary, error)
Recv reads instances of "chatterpb.HistoryResponse" from the "history" endpoint gRPC stream.
func (*HistoryClientStream) SetView ¶
func (s *HistoryClientStream) SetView(view string)
SetView sets the view.
type ListenerClientStream ¶
type ListenerClientStream struct {
// contains filtered or unexported fields
}
ListenerClientStream implements the chatter.ListenerClientStream interface.
func (*ListenerClientStream) Close ¶
func (s *ListenerClientStream) Close() error
func (*ListenerClientStream) Send ¶
func (s *ListenerClientStream) Send(res string) error
Send streams instances of "chatterpb.ListenerStreamingRequest" to the "listener" endpoint gRPC stream.
type SubscribeClientStream ¶
type SubscribeClientStream struct {
// contains filtered or unexported fields
}
SubscribeClientStream implements the chatter.SubscribeClientStream interface.
type SummaryClientStream ¶
type SummaryClientStream struct {
// contains filtered or unexported fields
}
SummaryClientStream implements the chatter.SummaryClientStream interface.
func (*SummaryClientStream) CloseAndRecv ¶
func (s *SummaryClientStream) CloseAndRecv() (chatter.ChatSummaryCollection, error)
CloseAndRecv reads instances of "chatterpb.ChatSummaryCollection" from the "summary" endpoint gRPC stream.
func (*SummaryClientStream) Send ¶
func (s *SummaryClientStream) Send(res string) error
Send streams instances of "chatterpb.SummaryStreamingRequest" to the "summary" endpoint gRPC stream.