interact

package
v0.0.0-...-634da50 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DogAction_name = map[int32]string{
		0: "UNKNOWN_DOG_ACTION",
		1: "POPIS",
		2: "WALK",
	}
	DogAction_value = map[string]int32{
		"UNKNOWN_DOG_ACTION": 0,
		"POPIS":              1,
		"WALK":               2,
	}
)

Enum value maps for DogAction.

View Source
var Dog_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "interact.Dog",
	HandlerType: (*DogServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SetStatus",
			Handler:    _Dog_SetStatus_Handler,
		},
		{
			MethodName: "StatusList",
			Handler:    _Dog_StatusList_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/dog.proto",
}

Dog_ServiceDesc is the grpc.ServiceDesc for Dog 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_api_dog_proto protoreflect.FileDescriptor

Functions

func RegisterDogServer

func RegisterDogServer(s grpc.ServiceRegistrar, srv DogServer)

Types

type DogAction

type DogAction int32
const (
	DogAction_UNKNOWN_DOG_ACTION DogAction = 0
	DogAction_POPIS              DogAction = 1
	DogAction_WALK               DogAction = 2
)

func (DogAction) Descriptor

func (DogAction) Descriptor() protoreflect.EnumDescriptor

func (DogAction) Enum

func (x DogAction) Enum() *DogAction

func (DogAction) EnumDescriptor deprecated

func (DogAction) EnumDescriptor() ([]byte, []int)

Deprecated: Use DogAction.Descriptor instead.

func (DogAction) Number

func (x DogAction) Number() protoreflect.EnumNumber

func (DogAction) String

func (x DogAction) String() string

func (DogAction) Type

type DogClient

type DogClient interface {
	SetStatus(ctx context.Context, in *SetStatusRequest, opts ...grpc.CallOption) (*SetStatusReply, error)
	StatusList(ctx context.Context, in *StatusListrequest, opts ...grpc.CallOption) (*StatusListReply, error)
}

DogClient is the client API for Dog 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 NewDogClient

func NewDogClient(cc grpc.ClientConnInterface) DogClient

type DogServer

type DogServer interface {
	SetStatus(context.Context, *SetStatusRequest) (*SetStatusReply, error)
	StatusList(context.Context, *StatusListrequest) (*StatusListReply, error)
	// contains filtered or unexported methods
}

DogServer is the server API for Dog service. All implementations must embed UnimplementedDogServer for forward compatibility

type SetStatusReply

type SetStatusReply struct {
	Result *SetStatusReply_Result `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*SetStatusReply) Descriptor deprecated

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

Deprecated: Use SetStatusReply.ProtoReflect.Descriptor instead.

func (*SetStatusReply) GetResult

func (x *SetStatusReply) GetResult() *SetStatusReply_Result

func (*SetStatusReply) ProtoMessage

func (*SetStatusReply) ProtoMessage()

func (*SetStatusReply) ProtoReflect

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

func (*SetStatusReply) Reset

func (x *SetStatusReply) Reset()

func (*SetStatusReply) String

func (x *SetStatusReply) String() string

type SetStatusReply_Result

type SetStatusReply_Result struct {
	Created bool `protobuf:"varint,1,opt,name=created,proto3" json:"created,omitempty"`
	// contains filtered or unexported fields
}

func (*SetStatusReply_Result) Descriptor deprecated

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

Deprecated: Use SetStatusReply_Result.ProtoReflect.Descriptor instead.

func (*SetStatusReply_Result) GetCreated

func (x *SetStatusReply_Result) GetCreated() bool

func (*SetStatusReply_Result) ProtoMessage

func (*SetStatusReply_Result) ProtoMessage()

func (*SetStatusReply_Result) ProtoReflect

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

func (*SetStatusReply_Result) Reset

func (x *SetStatusReply_Result) Reset()

func (*SetStatusReply_Result) String

func (x *SetStatusReply_Result) String() string

type SetStatusRequest

type SetStatusRequest struct {
	Action DogAction `protobuf:"varint,1,opt,name=action,proto3,enum=interact.DogAction" json:"action,omitempty"`
	// contains filtered or unexported fields
}

func (*SetStatusRequest) Descriptor deprecated

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

Deprecated: Use SetStatusRequest.ProtoReflect.Descriptor instead.

func (*SetStatusRequest) GetAction

func (x *SetStatusRequest) GetAction() DogAction

func (*SetStatusRequest) ProtoMessage

func (*SetStatusRequest) ProtoMessage()

func (*SetStatusRequest) ProtoReflect

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

func (*SetStatusRequest) Reset

func (x *SetStatusRequest) Reset()

func (*SetStatusRequest) String

func (x *SetStatusRequest) String() string

type StatusListReply

type StatusListReply struct {
	Result []*StatusListReply_Action `protobuf:"bytes,1,rep,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*StatusListReply) Descriptor deprecated

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

Deprecated: Use StatusListReply.ProtoReflect.Descriptor instead.

func (*StatusListReply) GetResult

func (x *StatusListReply) GetResult() []*StatusListReply_Action

func (*StatusListReply) ProtoMessage

func (*StatusListReply) ProtoMessage()

func (*StatusListReply) ProtoReflect

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

func (*StatusListReply) Reset

func (x *StatusListReply) Reset()

func (*StatusListReply) String

func (x *StatusListReply) String() string

type StatusListReply_Action

type StatusListReply_Action struct {
	Date   *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"`
	Action DogAction              `protobuf:"varint,2,opt,name=action,proto3,enum=interact.DogAction" json:"action,omitempty"`
	// contains filtered or unexported fields
}

func (*StatusListReply_Action) Descriptor deprecated

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

Deprecated: Use StatusListReply_Action.ProtoReflect.Descriptor instead.

func (*StatusListReply_Action) GetAction

func (x *StatusListReply_Action) GetAction() DogAction

func (*StatusListReply_Action) GetDate

func (*StatusListReply_Action) ProtoMessage

func (*StatusListReply_Action) ProtoMessage()

func (*StatusListReply_Action) ProtoReflect

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

func (*StatusListReply_Action) Reset

func (x *StatusListReply_Action) Reset()

func (*StatusListReply_Action) String

func (x *StatusListReply_Action) String() string

type StatusListrequest

type StatusListrequest struct {
	Filter *StatusListrequest_Filter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*StatusListrequest) Descriptor deprecated

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

Deprecated: Use StatusListrequest.ProtoReflect.Descriptor instead.

func (*StatusListrequest) GetFilter

func (*StatusListrequest) ProtoMessage

func (*StatusListrequest) ProtoMessage()

func (*StatusListrequest) ProtoReflect

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

func (*StatusListrequest) Reset

func (x *StatusListrequest) Reset()

func (*StatusListrequest) String

func (x *StatusListrequest) String() string

type StatusListrequest_Filter

type StatusListrequest_Filter struct {
	Date    *StatusListrequest_Filter_Date `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"`
	Actions []DogAction                    `protobuf:"varint,2,rep,packed,name=actions,proto3,enum=interact.DogAction" json:"actions,omitempty"`
	// contains filtered or unexported fields
}

func (*StatusListrequest_Filter) Descriptor deprecated

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

Deprecated: Use StatusListrequest_Filter.ProtoReflect.Descriptor instead.

func (*StatusListrequest_Filter) GetActions

func (x *StatusListrequest_Filter) GetActions() []DogAction

func (*StatusListrequest_Filter) GetDate

func (*StatusListrequest_Filter) ProtoMessage

func (*StatusListrequest_Filter) ProtoMessage()

func (*StatusListrequest_Filter) ProtoReflect

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

func (*StatusListrequest_Filter) Reset

func (x *StatusListrequest_Filter) Reset()

func (*StatusListrequest_Filter) String

func (x *StatusListrequest_Filter) String() string

type StatusListrequest_Filter_Date

type StatusListrequest_Filter_Date struct {
	From *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	To   *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*StatusListrequest_Filter_Date) Descriptor deprecated

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

Deprecated: Use StatusListrequest_Filter_Date.ProtoReflect.Descriptor instead.

func (*StatusListrequest_Filter_Date) GetFrom

func (*StatusListrequest_Filter_Date) GetTo

func (*StatusListrequest_Filter_Date) ProtoMessage

func (*StatusListrequest_Filter_Date) ProtoMessage()

func (*StatusListrequest_Filter_Date) ProtoReflect

func (*StatusListrequest_Filter_Date) Reset

func (x *StatusListrequest_Filter_Date) Reset()

func (*StatusListrequest_Filter_Date) String

type UnimplementedDogServer

type UnimplementedDogServer struct {
}

UnimplementedDogServer must be embedded to have forward compatible implementations.

func (UnimplementedDogServer) SetStatus

func (UnimplementedDogServer) StatusList

type UnsafeDogServer

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

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

Jump to

Keyboard shortcuts

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