v1

package
v0.0.0-...-8af7e35 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_v1_good_baby_proto protoreflect.FileDescriptor
View Source
var GoodBaby_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "good_baby.v1.GoodBaby",
	HandlerType: (*GoodBabyServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "IncreaseScore",
			Handler:    _GoodBaby_IncreaseScore_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/good_baby.proto",
}

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

Functions

func RegisterGoodBabyHTTPServer

func RegisterGoodBabyHTTPServer(s *http.Server, srv GoodBabyHTTPServer)

func RegisterGoodBabyServer

func RegisterGoodBabyServer(s grpc.ServiceRegistrar, srv GoodBabyServer)

Types

type GoodBabyClient

type GoodBabyClient interface {
	IncreaseScore(ctx context.Context, in *IncreaseScoreRequest, opts ...grpc.CallOption) (*IncreaseScoreReply, error)
}

GoodBabyClient is the client API for GoodBaby 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 NewGoodBabyClient

func NewGoodBabyClient(cc grpc.ClientConnInterface) GoodBabyClient

type GoodBabyHTTPClient

type GoodBabyHTTPClient interface {
	IncreaseScore(ctx context.Context, req *IncreaseScoreRequest, opts ...http.CallOption) (rsp *IncreaseScoreReply, err error)
}

func NewGoodBabyHTTPClient

func NewGoodBabyHTTPClient(client *http.Client) GoodBabyHTTPClient

type GoodBabyHTTPClientImpl

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

func (*GoodBabyHTTPClientImpl) IncreaseScore

type GoodBabyHTTPServer

type GoodBabyHTTPServer interface {
	IncreaseScore(context.Context, *IncreaseScoreRequest) (*IncreaseScoreReply, error)
}

type GoodBabyServer

type GoodBabyServer interface {
	IncreaseScore(context.Context, *IncreaseScoreRequest) (*IncreaseScoreReply, error)
	// contains filtered or unexported methods
}

GoodBabyServer is the server API for GoodBaby service. All implementations must embed UnimplementedGoodBabyServer for forward compatibility

type IncreaseScoreReply

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

func (*IncreaseScoreReply) Descriptor deprecated

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

Deprecated: Use IncreaseScoreReply.ProtoReflect.Descriptor instead.

func (*IncreaseScoreReply) GetMessage

func (x *IncreaseScoreReply) GetMessage() string

func (*IncreaseScoreReply) ProtoMessage

func (*IncreaseScoreReply) ProtoMessage()

func (*IncreaseScoreReply) ProtoReflect

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

func (*IncreaseScoreReply) Reset

func (x *IncreaseScoreReply) Reset()

func (*IncreaseScoreReply) String

func (x *IncreaseScoreReply) String() string

type IncreaseScoreRequest

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

func (*IncreaseScoreRequest) Descriptor deprecated

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

Deprecated: Use IncreaseScoreRequest.ProtoReflect.Descriptor instead.

func (*IncreaseScoreRequest) GetName

func (x *IncreaseScoreRequest) GetName() string

func (*IncreaseScoreRequest) ProtoMessage

func (*IncreaseScoreRequest) ProtoMessage()

func (*IncreaseScoreRequest) ProtoReflect

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

func (*IncreaseScoreRequest) Reset

func (x *IncreaseScoreRequest) Reset()

func (*IncreaseScoreRequest) String

func (x *IncreaseScoreRequest) String() string

type UnimplementedGoodBabyServer

type UnimplementedGoodBabyServer struct {
}

UnimplementedGoodBabyServer must be embedded to have forward compatible implementations.

func (UnimplementedGoodBabyServer) IncreaseScore

type UnsafeGoodBabyServer

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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