Documentation ¶
Index ¶
- Variables
- func BasicRegistry(basicServer BasicServer)
- func RegisterBasicServer(s grpc.ServiceRegistrar, srv BasicServer)
- type BasicClient
- type BasicServer
- type GetBackGroundImageUrlReq
- func (*GetBackGroundImageUrlReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetBackGroundImageUrlReq) GetType() string
- func (*GetBackGroundImageUrlReq) ProtoMessage()
- func (x *GetBackGroundImageUrlReq) ProtoReflect() protoreflect.Message
- func (x *GetBackGroundImageUrlReq) Reset()
- func (x *GetBackGroundImageUrlReq) String() string
- type GetBackGroundImageUrlRsp
- func (*GetBackGroundImageUrlRsp) Descriptor() ([]byte, []int)deprecated
- func (x *GetBackGroundImageUrlRsp) GetUrl() string
- func (*GetBackGroundImageUrlRsp) ProtoMessage()
- func (x *GetBackGroundImageUrlRsp) ProtoReflect() protoreflect.Message
- func (x *GetBackGroundImageUrlRsp) Reset()
- func (x *GetBackGroundImageUrlRsp) String() string
- type Global
- type UnimplementedBasicServer
- type UnsafeBasicServer
Constants ¶
This section is empty.
Variables ¶
var Basic_ServiceDesc = grpc.ServiceDesc{ ServiceName: "genshin.basic.Basic", HandlerType: (*BasicServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetBackGroundImageUrl", Handler: _Basic_GetBackGroundImageUrl_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "basic.proto", }
Basic_ServiceDesc is the grpc.ServiceDesc for Basic service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_basic_message_proto protoreflect.FileDescriptor
var File_basic_proto protoreflect.FileDescriptor
Functions ¶
func BasicRegistry ¶
func BasicRegistry(basicServer BasicServer)
func RegisterBasicServer ¶ added in v0.0.4
func RegisterBasicServer(s grpc.ServiceRegistrar, srv BasicServer)
Types ¶
type BasicClient ¶ added in v0.0.4
type BasicClient interface {
GetBackGroundImageUrl(ctx context.Context, in *GetBackGroundImageUrlReq, opts ...grpc.CallOption) (*GetBackGroundImageUrlRsp, error)
}
BasicClient is the client API for Basic service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewBasicClient ¶ added in v0.0.4
func NewBasicClient(cc grpc.ClientConnInterface) BasicClient
type BasicServer ¶ added in v0.0.4
type BasicServer interface {
GetBackGroundImageUrl(context.Context, *GetBackGroundImageUrlReq) (*GetBackGroundImageUrlRsp, error)
}
BasicServer is the server API for Basic service. All implementations should embed UnimplementedBasicServer for forward compatibility
type GetBackGroundImageUrlReq ¶ added in v0.0.4
type GetBackGroundImageUrlReq struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // 类型 // contains filtered or unexported fields }
func (*GetBackGroundImageUrlReq) Descriptor
deprecated
added in
v0.0.4
func (*GetBackGroundImageUrlReq) Descriptor() ([]byte, []int)
Deprecated: Use GetBackGroundImageUrlReq.ProtoReflect.Descriptor instead.
func (*GetBackGroundImageUrlReq) GetType ¶ added in v0.0.5
func (x *GetBackGroundImageUrlReq) GetType() string
func (*GetBackGroundImageUrlReq) ProtoMessage ¶ added in v0.0.4
func (*GetBackGroundImageUrlReq) ProtoMessage()
func (*GetBackGroundImageUrlReq) ProtoReflect ¶ added in v0.0.4
func (x *GetBackGroundImageUrlReq) ProtoReflect() protoreflect.Message
func (*GetBackGroundImageUrlReq) Reset ¶ added in v0.0.4
func (x *GetBackGroundImageUrlReq) Reset()
func (*GetBackGroundImageUrlReq) String ¶ added in v0.0.4
func (x *GetBackGroundImageUrlReq) String() string
type GetBackGroundImageUrlRsp ¶ added in v0.0.4
type GetBackGroundImageUrlRsp struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // 图片链接 // contains filtered or unexported fields }
func (*GetBackGroundImageUrlRsp) Descriptor
deprecated
added in
v0.0.4
func (*GetBackGroundImageUrlRsp) Descriptor() ([]byte, []int)
Deprecated: Use GetBackGroundImageUrlRsp.ProtoReflect.Descriptor instead.
func (*GetBackGroundImageUrlRsp) GetUrl ¶ added in v0.0.5
func (x *GetBackGroundImageUrlRsp) GetUrl() string
func (*GetBackGroundImageUrlRsp) ProtoMessage ¶ added in v0.0.4
func (*GetBackGroundImageUrlRsp) ProtoMessage()
func (*GetBackGroundImageUrlRsp) ProtoReflect ¶ added in v0.0.4
func (x *GetBackGroundImageUrlRsp) ProtoReflect() protoreflect.Message
func (*GetBackGroundImageUrlRsp) Reset ¶ added in v0.0.4
func (x *GetBackGroundImageUrlRsp) Reset()
func (*GetBackGroundImageUrlRsp) String ¶ added in v0.0.4
func (x *GetBackGroundImageUrlRsp) String() string
type Global ¶
type Global struct {
// contains filtered or unexported fields
}
func (*Global) BasicServices ¶
func (g *Global) BasicServices(basicServer BasicServer)
func (*Global) GetBackGroundImageUrl ¶
func (*Global) Registry ¶
func (g *Global) Registry(basicServer BasicServer)
type UnimplementedBasicServer ¶ added in v0.0.4
type UnimplementedBasicServer struct { }
UnimplementedBasicServer should be embedded to have forward compatible implementations.
func (UnimplementedBasicServer) GetBackGroundImageUrl ¶ added in v0.0.4
func (UnimplementedBasicServer) GetBackGroundImageUrl(context.Context, *GetBackGroundImageUrlReq) (*GetBackGroundImageUrlRsp, error)
type UnsafeBasicServer ¶ added in v0.0.4
type UnsafeBasicServer interface {
// contains filtered or unexported methods
}
UnsafeBasicServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BasicServer will result in compilation errors.