admin

package
v0.0.0-...-2af415a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Byts.ProtoReflect.Descriptor instead.

func (*Byts) GetB

func (x *Byts) GetB() []byte

func (*Byts) ProtoMessage

func (*Byts) ProtoMessage()

func (*Byts) ProtoReflect

func (x *Byts) ProtoReflect() protoreflect.Message

func (*Byts) Reset

func (x *Byts) Reset()

func (*Byts) String

func (x *Byts) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Ids.ProtoReflect.Descriptor instead.

func (*Ids) GetIds

func (x *Ids) GetIds() []string

func (*Ids) ProtoMessage

func (*Ids) ProtoMessage()

func (*Ids) ProtoReflect

func (x *Ids) ProtoReflect() protoreflect.Message

func (*Ids) Reset

func (x *Ids) Reset()

func (*Ids) String

func (x *Ids) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetBody

func (x *Params) GetBody() string

func (*Params) GetIconUrl

func (x *Params) GetIconUrl() string

func (*Params) GetTitle

func (x *Params) GetTitle() string

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

func (x *Params) ProtoReflect() protoreflect.Message

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

type UnimplementedAdminSvcServer

type UnimplementedAdminSvcServer struct {
}

UnimplementedAdminSvcServer must be embedded to have forward compatible implementations.

func (UnimplementedAdminSvcServer) GetIds

func (UnimplementedAdminSvcServer) Notify

func (UnimplementedAdminSvcServer) Status

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) Descriptor() ([]byte, []int)

Deprecated: Use Void.ProtoReflect.Descriptor instead.

func (*Void) ProtoMessage

func (*Void) ProtoMessage()

func (*Void) ProtoReflect

func (x *Void) ProtoReflect() protoreflect.Message

func (*Void) Reset

func (x *Void) Reset()

func (*Void) String

func (x *Void) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL