Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterKakaHTTPServer(s *http.Server, srv KakaHTTPServer)
- func RegisterKakaServer(s grpc.ServiceRegistrar, srv KakaServer)
- type Channel
- func (*Channel) Descriptor() ([]byte, []int)deprecated
- func (x *Channel) GetClients() []*Session
- func (x *Channel) GetId() string
- func (x *Channel) GetSource() *Session
- func (*Channel) ProtoMessage()
- func (x *Channel) ProtoReflect() protoreflect.Message
- func (x *Channel) Reset()
- func (x *Channel) String() string
- type DebugReply
- type DebugRequest
- type KakaClient
- type KakaHTTPClient
- type KakaHTTPClientImpl
- type KakaHTTPServer
- type KakaServer
- type Session
- func (*Session) Descriptor() ([]byte, []int)deprecated
- func (x *Session) GetAddr() string
- func (x *Session) GetId() string
- func (x *Session) GetInterleaved() bool
- func (x *Session) GetRx() uint32
- func (x *Session) GetStatus() string
- func (x *Session) GetStreams() []*Stream
- func (x *Session) GetTx() uint32
- func (*Session) ProtoMessage()
- func (x *Session) ProtoReflect() protoreflect.Message
- func (x *Session) Reset()
- func (x *Session) String() string
- type Stream
- type UnimplementedKakaServer
- type UnsafeKakaServer
Constants ¶
const OperationKakaDebug = "/api.kaka.v1.Kaka/Debug"
Variables ¶
var File_kaka_v1_kaka_proto protoreflect.FileDescriptor
var Kaka_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.kaka.v1.Kaka", HandlerType: (*KakaServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Debug", Handler: _Kaka_Debug_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "kaka/v1/kaka.proto", }
Kaka_ServiceDesc is the grpc.ServiceDesc for Kaka service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterKakaHTTPServer ¶
func RegisterKakaHTTPServer(s *http.Server, srv KakaHTTPServer)
func RegisterKakaServer ¶
func RegisterKakaServer(s grpc.ServiceRegistrar, srv KakaServer)
Types ¶
type Channel ¶
type Channel struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Source *Session `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` Clients []*Session `protobuf:"bytes,3,rep,name=clients,proto3" json:"clients,omitempty"` // contains filtered or unexported fields }
func (*Channel) Descriptor
deprecated
func (*Channel) GetClients ¶
func (*Channel) ProtoMessage ¶
func (*Channel) ProtoMessage()
func (*Channel) ProtoReflect ¶
func (x *Channel) ProtoReflect() protoreflect.Message
type DebugReply ¶
type DebugReply struct { Channels []*Channel `protobuf:"bytes,1,rep,name=channels,proto3" json:"channels,omitempty"` // contains filtered or unexported fields }
func (*DebugReply) Descriptor
deprecated
func (*DebugReply) Descriptor() ([]byte, []int)
Deprecated: Use DebugReply.ProtoReflect.Descriptor instead.
func (*DebugReply) GetChannels ¶
func (x *DebugReply) GetChannels() []*Channel
func (*DebugReply) ProtoMessage ¶
func (*DebugReply) ProtoMessage()
func (*DebugReply) ProtoReflect ¶
func (x *DebugReply) ProtoReflect() protoreflect.Message
func (*DebugReply) Reset ¶
func (x *DebugReply) Reset()
func (*DebugReply) String ¶
func (x *DebugReply) String() string
type DebugRequest ¶
type DebugRequest struct {
// contains filtered or unexported fields
}
func (*DebugRequest) Descriptor
deprecated
func (*DebugRequest) Descriptor() ([]byte, []int)
Deprecated: Use DebugRequest.ProtoReflect.Descriptor instead.
func (*DebugRequest) ProtoMessage ¶
func (*DebugRequest) ProtoMessage()
func (*DebugRequest) ProtoReflect ¶
func (x *DebugRequest) ProtoReflect() protoreflect.Message
func (*DebugRequest) Reset ¶
func (x *DebugRequest) Reset()
func (*DebugRequest) String ¶
func (x *DebugRequest) String() string
type KakaClient ¶
type KakaClient interface {
Debug(ctx context.Context, in *DebugRequest, opts ...grpc.CallOption) (*DebugReply, error)
}
KakaClient is the client API for Kaka service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewKakaClient ¶
func NewKakaClient(cc grpc.ClientConnInterface) KakaClient
type KakaHTTPClient ¶
type KakaHTTPClient interface {
Debug(ctx context.Context, req *DebugRequest, opts ...http.CallOption) (rsp *DebugReply, err error)
}
func NewKakaHTTPClient ¶
func NewKakaHTTPClient(client *http.Client) KakaHTTPClient
type KakaHTTPClientImpl ¶
type KakaHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*KakaHTTPClientImpl) Debug ¶
func (c *KakaHTTPClientImpl) Debug(ctx context.Context, in *DebugRequest, opts ...http.CallOption) (*DebugReply, error)
type KakaHTTPServer ¶
type KakaHTTPServer interface {
Debug(context.Context, *DebugRequest) (*DebugReply, error)
}
type KakaServer ¶
type KakaServer interface { Debug(context.Context, *DebugRequest) (*DebugReply, error) // contains filtered or unexported methods }
KakaServer is the server API for Kaka service. All implementations must embed UnimplementedKakaServer for forward compatibility
type Session ¶
type Session struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` Interleaved bool `protobuf:"varint,3,opt,name=interleaved,proto3" json:"interleaved,omitempty"` Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` Rx uint32 `protobuf:"varint,5,opt,name=rx,proto3" json:"rx,omitempty"` Tx uint32 `protobuf:"varint,6,opt,name=tx,proto3" json:"tx,omitempty"` Streams []*Stream `protobuf:"bytes,7,rep,name=streams,proto3" json:"streams,omitempty"` // contains filtered or unexported fields }
func (*Session) Descriptor
deprecated
func (*Session) GetInterleaved ¶
func (*Session) GetStreams ¶
func (*Session) ProtoMessage ¶
func (*Session) ProtoMessage()
func (*Session) ProtoReflect ¶
func (x *Session) ProtoReflect() protoreflect.Message
type Stream ¶
type Stream struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*Stream) Descriptor
deprecated
func (*Stream) ProtoMessage ¶
func (*Stream) ProtoMessage()
func (*Stream) ProtoReflect ¶
func (x *Stream) ProtoReflect() protoreflect.Message
type UnimplementedKakaServer ¶
type UnimplementedKakaServer struct { }
UnimplementedKakaServer must be embedded to have forward compatible implementations.
func (UnimplementedKakaServer) Debug ¶
func (UnimplementedKakaServer) Debug(context.Context, *DebugRequest) (*DebugReply, error)
type UnsafeKakaServer ¶
type UnsafeKakaServer interface {
// contains filtered or unexported methods
}
UnsafeKakaServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KakaServer will result in compilation errors.