Documentation
¶
Index ¶
- Variables
- func RegisterAdminSvcServer(s grpc.ServiceRegistrar, srv AdminSvcServer)
- type AdminSvcClient
- type AdminSvcServer
- type Byts
- type Ids
- type Params
- func (*Params) Descriptor() ([]byte, []int)deprecated
- func (x *Params) GetBody() string
- func (x *Params) GetIconUrl() string
- func (x *Params) GetTitle() string
- func (*Params) ProtoMessage()
- func (x *Params) ProtoReflect() protoreflect.Message
- func (x *Params) Reset()
- func (x *Params) String() string
- type UnimplementedAdminSvcServer
- type UnsafeAdminSvcServer
- type Void
Constants ¶
This section is empty.
Variables ¶
var AdminSvc_ServiceDesc = grpc.ServiceDesc{ ServiceName: "AdminSvc", HandlerType: (*AdminSvcServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetIds", Handler: _AdminSvc_GetIds_Handler, }, { MethodName: "Status", Handler: _AdminSvc_Status_Handler, }, { MethodName: "Notify", Handler: _AdminSvc_Notify_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "admin.proto", }
AdminSvc_ServiceDesc is the grpc.ServiceDesc for AdminSvc service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_admin_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAdminSvcServer ¶
func RegisterAdminSvcServer(s grpc.ServiceRegistrar, srv AdminSvcServer)
Types ¶
type AdminSvcClient ¶
type AdminSvcClient interface { GetIds(ctx context.Context, in *Void, opts ...grpc.CallOption) (*Ids, error) Status(ctx context.Context, in *Void, opts ...grpc.CallOption) (*Byts, error) Notify(ctx context.Context, in *Params, opts ...grpc.CallOption) (*Void, error) }
AdminSvcClient is the client API for AdminSvc 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 NewAdminSvcClient ¶
func NewAdminSvcClient(cc grpc.ClientConnInterface) AdminSvcClient
type AdminSvcServer ¶
type AdminSvcServer interface { GetIds(context.Context, *Void) (*Ids, error) Status(context.Context, *Void) (*Byts, error) Notify(context.Context, *Params) (*Void, error) // contains filtered or unexported methods }
AdminSvcServer is the server API for AdminSvc service. All implementations must embed UnimplementedAdminSvcServer for forward compatibility
type Byts ¶
type Byts struct { B []byte `protobuf:"bytes,1,opt,name=b,proto3" json:"b,omitempty"` // contains filtered or unexported fields }
func (*Byts) Descriptor
deprecated
func (*Byts) ProtoMessage ¶
func (*Byts) ProtoMessage()
func (*Byts) ProtoReflect ¶
func (x *Byts) ProtoReflect() protoreflect.Message
type Ids ¶
type Ids struct { Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*Ids) Descriptor
deprecated
func (*Ids) ProtoMessage ¶
func (*Ids) ProtoMessage()
func (*Ids) ProtoReflect ¶
func (x *Ids) ProtoReflect() protoreflect.Message
type Params ¶
type Params struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` IconUrl string `protobuf:"bytes,3,opt,name=iconUrl,proto3" json:"iconUrl,omitempty"` // contains filtered or unexported fields }
func (*Params) Descriptor
deprecated
func (*Params) GetIconUrl ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
type UnimplementedAdminSvcServer ¶
type UnimplementedAdminSvcServer struct { }
UnimplementedAdminSvcServer must be embedded to have forward compatible implementations.
type UnsafeAdminSvcServer ¶
type UnsafeAdminSvcServer interface {
// contains filtered or unexported methods
}
UnsafeAdminSvcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AdminSvcServer will result in compilation errors.
type Void ¶
type Void struct {
// contains filtered or unexported fields
}
func (*Void) Descriptor
deprecated
func (*Void) ProtoMessage ¶
func (*Void) ProtoMessage()
func (*Void) ProtoReflect ¶
func (x *Void) ProtoReflect() protoreflect.Message