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 interface{}, hdr, trlr metadata.MD) (interface{}, error)
- func DecodeHistoryResponse(ctx context.Context, v interface{}, hdr, trlr metadata.MD) (interface{}, error)
- func DecodeListenerResponse(ctx context.Context, v interface{}, hdr, trlr metadata.MD) (interface{}, error)
- func DecodeLoginResponse(ctx context.Context, v interface{}, hdr, trlr metadata.MD) (interface{}, error)
- func DecodeSubscribeResponse(ctx context.Context, v interface{}, hdr, trlr metadata.MD) (interface{}, error)
- func DecodeSummaryResponse(ctx context.Context, v interface{}, hdr, trlr metadata.MD) (interface{}, error)
- func EncodeEchoerRequest(ctx context.Context, v interface{}, md *metadata.MD) (interface{}, error)
- func EncodeHistoryRequest(ctx context.Context, v interface{}, md *metadata.MD) (interface{}, error)
- func EncodeListenerRequest(ctx context.Context, v interface{}, md *metadata.MD) (interface{}, error)
- func EncodeLoginRequest(ctx context.Context, v interface{}, md *metadata.MD) (interface{}, error)
- func EncodeSubscribeRequest(ctx context.Context, v interface{}, md *metadata.MD) (interface{}, error)
- func EncodeSummaryRequest(ctx context.Context, v interface{}, md *metadata.MD) (interface{}, error)
- func NewChatSummaryCollection(v *chatterpb.ChatSummaryCollection) chatterviews.ChatSummaryCollectionView
- func NewChatSummaryView(v *chatterpb.HistoryResponse) *chatterviews.ChatSummaryView
- func NewEchoerResponse(v *chatterpb.EchoerResponse) string
- func NewEchoerStreamingRequest(spayload string) *chatterpb.EchoerStreamingRequest
- func NewEvent(v *chatterpb.SubscribeResponse) *chatter.Event
- func NewHistoryRequest() *chatterpb.HistoryRequest
- func NewListenerStreamingRequest(spayload string) *chatterpb.ListenerStreamingRequest
- func NewLoginRequest() *chatterpb.LoginRequest
- func NewLoginResult(message *chatterpb.LoginResponse) string
- func NewSubscribeRequest() *chatterpb.SubscribeRequest
- func NewSummaryStreamingRequest(spayload string) *chatterpb.SummaryStreamingRequest
- func ValidateChatSummary(message *chatterpb.ChatSummary) (err error)
- func ValidateChatSummaryCollection(message *chatterpb.ChatSummaryCollection) (err error)
- func ValidateHistoryResponse(message *chatterpb.HistoryResponse) (err error)
- func ValidateSubscribeResponse(message *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 ¶
func DecodeEchoerResponse(ctx context.Context, v interface{}, hdr, trlr metadata.MD) (interface{}, error)
DecodeEchoerResponse decodes responses from the chatter echoer endpoint.
func DecodeHistoryResponse ¶
func DecodeHistoryResponse(ctx context.Context, v interface{}, hdr, trlr metadata.MD) (interface{}, error)
DecodeHistoryResponse decodes responses from the chatter history endpoint.
func DecodeListenerResponse ¶
func DecodeListenerResponse(ctx context.Context, v interface{}, hdr, trlr metadata.MD) (interface{}, error)
DecodeListenerResponse decodes responses from the chatter listener endpoint.
func DecodeLoginResponse ¶
func DecodeLoginResponse(ctx context.Context, v interface{}, hdr, trlr metadata.MD) (interface{}, error)
DecodeLoginResponse decodes responses from the chatter login endpoint.
func DecodeSubscribeResponse ¶
func DecodeSubscribeResponse(ctx context.Context, v interface{}, hdr, trlr metadata.MD) (interface{}, error)
DecodeSubscribeResponse decodes responses from the chatter subscribe endpoint.
func DecodeSummaryResponse ¶
func DecodeSummaryResponse(ctx context.Context, v interface{}, hdr, trlr metadata.MD) (interface{}, error)
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 ¶
func EncodeListenerRequest(ctx context.Context, v interface{}, md *metadata.MD) (interface{}, error)
EncodeListenerRequest encodes requests sent to chatter listener endpoint.
func EncodeLoginRequest ¶
EncodeLoginRequest encodes requests sent to chatter login endpoint.
func EncodeSubscribeRequest ¶
func EncodeSubscribeRequest(ctx context.Context, v interface{}, md *metadata.MD) (interface{}, error)
EncodeSubscribeRequest encodes requests sent to chatter subscribe endpoint.
func EncodeSummaryRequest ¶
EncodeSummaryRequest encodes requests sent to chatter summary endpoint.
func NewChatSummaryCollection ¶
func NewChatSummaryCollection(v *chatterpb.ChatSummaryCollection) chatterviews.ChatSummaryCollectionView
func NewChatSummaryView ¶
func NewChatSummaryView(v *chatterpb.HistoryResponse) *chatterviews.ChatSummaryView
func NewEchoerResponse ¶
func NewEchoerResponse(v *chatterpb.EchoerResponse) string
func NewEchoerStreamingRequest ¶
func NewEchoerStreamingRequest(spayload string) *chatterpb.EchoerStreamingRequest
func NewHistoryRequest ¶
func NewHistoryRequest() *chatterpb.HistoryRequest
NewHistoryRequest builds the gRPC request type from the payload of the "history" endpoint of the "chatter" service.
func NewListenerStreamingRequest ¶
func NewListenerStreamingRequest(spayload string) *chatterpb.ListenerStreamingRequest
func NewLoginRequest ¶
func NewLoginRequest() *chatterpb.LoginRequest
NewLoginRequest builds the gRPC request type from the payload of the "login" endpoint of the "chatter" service.
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 NewSubscribeRequest ¶
func NewSubscribeRequest() *chatterpb.SubscribeRequest
NewSubscribeRequest builds the gRPC request type from the payload of the "subscribe" endpoint of the "chatter" service.
func NewSummaryStreamingRequest ¶
func NewSummaryStreamingRequest(spayload string) *chatterpb.SummaryStreamingRequest
func ValidateChatSummary ¶
func ValidateChatSummary(message *chatterpb.ChatSummary) (err error)
ValidateChatSummary runs the validations defined on ChatSummary.
func ValidateChatSummaryCollection ¶
func ValidateChatSummaryCollection(message *chatterpb.ChatSummaryCollection) (err error)
ValidateChatSummaryCollection runs the validations defined on ChatSummaryCollection.
func ValidateHistoryResponse ¶
func ValidateHistoryResponse(message *chatterpb.HistoryResponse) (err error)
ValidateHistoryResponse runs the validations defined on HistoryResponse.
func ValidateSubscribeResponse ¶
func ValidateSubscribeResponse(message *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.