Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_store_proto protoreflect.FileDescriptor
var Store_ServiceDesc = grpc.ServiceDesc{ ServiceName: "store.Store", HandlerType: (*StoreServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetVersion", Handler: _Store_GetVersion_Handler, }, { MethodName: "Store", Handler: _Store_Store_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "store.proto", }
Store_ServiceDesc is the grpc.ServiceDesc for Store service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStoreServer ¶
func RegisterStoreServer(s grpc.ServiceRegistrar, srv StoreServer)
Types ¶
type StoreClient ¶
type StoreClient interface { GetVersion(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*wrapperspb.StringValue, error) Store(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*emptypb.Empty, error) }
StoreClient is the client API for Store 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 NewStoreClient ¶
func NewStoreClient(cc grpc.ClientConnInterface) StoreClient
type StoreServer ¶
type StoreServer interface { GetVersion(context.Context, *emptypb.Empty) (*wrapperspb.StringValue, error) Store(context.Context, *wrapperspb.StringValue) (*emptypb.Empty, error) // contains filtered or unexported methods }
StoreServer is the server API for Store service. All implementations must embed UnimplementedStoreServer for forward compatibility
type UnimplementedStoreServer ¶
type UnimplementedStoreServer struct { }
UnimplementedStoreServer must be embedded to have forward compatible implementations.
func (UnimplementedStoreServer) GetVersion ¶
func (UnimplementedStoreServer) GetVersion(context.Context, *emptypb.Empty) (*wrapperspb.StringValue, error)
func (UnimplementedStoreServer) Store ¶
func (UnimplementedStoreServer) Store(context.Context, *wrapperspb.StringValue) (*emptypb.Empty, error)
type UnsafeStoreServer ¶
type UnsafeStoreServer interface {
// contains filtered or unexported methods
}
UnsafeStoreServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StoreServer will result in compilation errors.