v1

package
v0.0.0-...-71f3af2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CCNUService_SaveUser_FullMethodName  = "/api.ccnu_service.v1.CCNUService/SaveUser"
	CCNUService_GetCookie_FullMethodName = "/api.ccnu_service.v1.CCNUService/GetCookie"
)
View Source
const OperationCCNUServiceGetCookie = "/api.ccnu_service.v1.CCNUService/GetCookie"
View Source
const OperationCCNUServiceSaveUser = "/api.ccnu_service.v1.CCNUService/SaveUser"

Variables

View Source
var CCNUService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.ccnu_service.v1.CCNUService",
	HandlerType: (*CCNUServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SaveUser",
			Handler:    _CCNUService_SaveUser_Handler,
		},
		{
			MethodName: "GetCookie",
			Handler:    _CCNUService_GetCookie_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "ccnu_service/v1/ccnu_service.proto",
}

CCNUService_ServiceDesc is the grpc.ServiceDesc for CCNUService 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_ccnu_service_v1_ccnu_service_proto protoreflect.FileDescriptor

Functions

func RegisterCCNUServiceHTTPServer

func RegisterCCNUServiceHTTPServer(s *http.Server, srv CCNUServiceHTTPServer)

func RegisterCCNUServiceServer

func RegisterCCNUServiceServer(s grpc.ServiceRegistrar, srv CCNUServiceServer)

Types

type CCNUServiceClient

type CCNUServiceClient interface {
	SaveUser(ctx context.Context, in *SaveUserRequest, opts ...grpc.CallOption) (*SaveUserResponse, error)
	GetCookie(ctx context.Context, in *GetCookieRequest, opts ...grpc.CallOption) (*GetCookieResponse, error)
}

CCNUServiceClient is the client API for CCNUService 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 CCNUServiceHTTPClient

type CCNUServiceHTTPClient interface {
	GetCookie(ctx context.Context, req *GetCookieRequest, opts ...http.CallOption) (rsp *GetCookieResponse, err error)
	SaveUser(ctx context.Context, req *SaveUserRequest, opts ...http.CallOption) (rsp *SaveUserResponse, err error)
}

func NewCCNUServiceHTTPClient

func NewCCNUServiceHTTPClient(client *http.Client) CCNUServiceHTTPClient

type CCNUServiceHTTPClientImpl

type CCNUServiceHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*CCNUServiceHTTPClientImpl) GetCookie

func (*CCNUServiceHTTPClientImpl) SaveUser

type CCNUServiceHTTPServer

type CCNUServiceHTTPServer interface {
	GetCookie(context.Context, *GetCookieRequest) (*GetCookieResponse, error)
	SaveUser(context.Context, *SaveUserRequest) (*SaveUserResponse, error)
}

type CCNUServiceServer

type CCNUServiceServer interface {
	SaveUser(context.Context, *SaveUserRequest) (*SaveUserResponse, error)
	GetCookie(context.Context, *GetCookieRequest) (*GetCookieResponse, error)
	// contains filtered or unexported methods
}

CCNUServiceServer is the server API for CCNUService service. All implementations must embed UnimplementedCCNUServiceServer for forward compatibility

type GetCookieRequest

type GetCookieRequest struct {
	Userid string `protobuf:"bytes,1,opt,name=userid,proto3" json:"userid,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCookieRequest) Descriptor deprecated

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

Deprecated: Use GetCookieRequest.ProtoReflect.Descriptor instead.

func (*GetCookieRequest) GetUserid

func (x *GetCookieRequest) GetUserid() string

func (*GetCookieRequest) ProtoMessage

func (*GetCookieRequest) ProtoMessage()

func (*GetCookieRequest) ProtoReflect

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

func (*GetCookieRequest) Reset

func (x *GetCookieRequest) Reset()

func (*GetCookieRequest) String

func (x *GetCookieRequest) String() string

type GetCookieResponse

type GetCookieResponse struct {
	Cookie string `protobuf:"bytes,1,opt,name=cookie,proto3" json:"cookie,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCookieResponse) Descriptor deprecated

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

Deprecated: Use GetCookieResponse.ProtoReflect.Descriptor instead.

func (*GetCookieResponse) GetCookie

func (x *GetCookieResponse) GetCookie() string

func (*GetCookieResponse) ProtoMessage

func (*GetCookieResponse) ProtoMessage()

func (*GetCookieResponse) ProtoReflect

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

func (*GetCookieResponse) Reset

func (x *GetCookieResponse) Reset()

func (*GetCookieResponse) String

func (x *GetCookieResponse) String() string

type SaveUserRequest

type SaveUserRequest struct {
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*SaveUserRequest) Descriptor deprecated

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

Deprecated: Use SaveUserRequest.ProtoReflect.Descriptor instead.

func (*SaveUserRequest) GetUser

func (x *SaveUserRequest) GetUser() *User

func (*SaveUserRequest) ProtoMessage

func (*SaveUserRequest) ProtoMessage()

func (*SaveUserRequest) ProtoReflect

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

func (*SaveUserRequest) Reset

func (x *SaveUserRequest) Reset()

func (*SaveUserRequest) String

func (x *SaveUserRequest) String() string

type SaveUserResponse

type SaveUserResponse struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*SaveUserResponse) Descriptor deprecated

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

Deprecated: Use SaveUserResponse.ProtoReflect.Descriptor instead.

func (*SaveUserResponse) GetMessage

func (x *SaveUserResponse) GetMessage() string

func (*SaveUserResponse) ProtoMessage

func (*SaveUserResponse) ProtoMessage()

func (*SaveUserResponse) ProtoReflect

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

func (*SaveUserResponse) Reset

func (x *SaveUserResponse) Reset()

func (*SaveUserResponse) String

func (x *SaveUserResponse) String() string

type UnimplementedCCNUServiceServer

type UnimplementedCCNUServiceServer struct {
}

UnimplementedCCNUServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCCNUServiceServer) GetCookie

func (UnimplementedCCNUServiceServer) SaveUser

type UnsafeCCNUServiceServer

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

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

type User

type User struct {
	Userid   string `protobuf:"bytes,1,opt,name=userid,proto3" json:"userid,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetPassword

func (x *User) GetPassword() string

func (*User) GetUserid

func (x *User) GetUserid() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Jump to

Keyboard shortcuts

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