api

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_show_info_proto protoreflect.FileDescriptor
View Source
var ShowService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.ShowService",
	HandlerType: (*ShowServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Show",
			Handler:    _ShowService_Show_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/show_info.proto",
}

ShowService_ServiceDesc is the grpc.ServiceDesc for ShowService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterShowServiceServer

func RegisterShowServiceServer(s grpc.ServiceRegistrar, srv ShowServiceServer)

Types

type ShowInfo

type ShowInfo struct {
	InfoId   int64                  `protobuf:"varint,1,opt,name=info_id,json=infoId,proto3" json:"info_id,omitempty"`
	Assets   []*asset.BasicAsset    `protobuf:"bytes,2,rep,name=assets,proto3" json:"assets,omitempty"`
	ShowTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=show_time,json=showTime,proto3" json:"show_time,omitempty"`
	// contains filtered or unexported fields
}

ShowInfo 定义接口Show的返回消息

func (*ShowInfo) Descriptor deprecated

func (*ShowInfo) Descriptor() ([]byte, []int)

Deprecated: Use ShowInfo.ProtoReflect.Descriptor instead.

func (*ShowInfo) GetAssets

func (x *ShowInfo) GetAssets() []*asset.BasicAsset

func (*ShowInfo) GetInfoId

func (x *ShowInfo) GetInfoId() int64

func (*ShowInfo) GetShowTime

func (x *ShowInfo) GetShowTime() *timestamppb.Timestamp

func (*ShowInfo) ProtoMessage

func (*ShowInfo) ProtoMessage()

func (*ShowInfo) ProtoReflect

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

func (*ShowInfo) Reset

func (x *ShowInfo) Reset()

func (*ShowInfo) String

func (x *ShowInfo) String() string

type ShowRequest

type ShowRequest struct {
	RequestId int64 `protobuf:"varint,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

ShowRequest 定义接口Show的请求消息

func (*ShowRequest) Descriptor deprecated

func (*ShowRequest) Descriptor() ([]byte, []int)

Deprecated: Use ShowRequest.ProtoReflect.Descriptor instead.

func (*ShowRequest) GetRequestId

func (x *ShowRequest) GetRequestId() int64

func (*ShowRequest) ProtoMessage

func (*ShowRequest) ProtoMessage()

func (*ShowRequest) ProtoReflect

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

func (*ShowRequest) Reset

func (x *ShowRequest) Reset()

func (*ShowRequest) String

func (x *ShowRequest) String() string

type ShowServiceClient

type ShowServiceClient interface {
	Show(ctx context.Context, in *ShowRequest, opts ...grpc.CallOption) (*ShowInfo, error)
}

ShowServiceClient is the client API for ShowService 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.

type ShowServiceServer

type ShowServiceServer interface {
	Show(context.Context, *ShowRequest) (*ShowInfo, error)
	// contains filtered or unexported methods
}

ShowServiceServer is the server API for ShowService service. All implementations must embed UnimplementedShowServiceServer for forward compatibility

type UnimplementedShowServiceServer

type UnimplementedShowServiceServer struct {
}

UnimplementedShowServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedShowServiceServer) Show

type UnsafeShowServiceServer

type UnsafeShowServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeShowServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ShowServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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