basic

package module
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: MulanPSL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

View Source
var File_basic_message_proto protoreflect.FileDescriptor
View Source
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.go.dev/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) GG

func (g *Global) GG(err error)

func (*Global) GetBackGroundImageUrl

func (g *Global) GetBackGroundImageUrl(ctx *gin.Context)

func (*Global) Registry

func (g *Global) Registry(basicServer BasicServer)

func (*Global) Warning

func (g *Global) Warning(err error)

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

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.

Jump to

Keyboard shortcuts

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