Locale Go-API
locale
Section titled “locale”import "givc/modules/api/locale"
- Constants
- Variables
- func RegisterLocaleClientServer(s grpc.ServiceRegistrar, srv LocaleClientServer)
- func _LocaleClient_LocaleSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)
- func _LocaleClient_TimezoneSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)
- func file_locale_locale_proto_init()
- func file_locale_locale_proto_rawDescGZIP() []byte
- func init()
- type Empty
- type LocaleClientClient
- type LocaleClientServer
- type LocaleMessage
- type TimezoneMessage
- type UnimplementedLocaleClientServer
- func (UnimplementedLocaleClientServer) LocaleSet(context.Context, *LocaleMessage) (*Empty, error)
- func (UnimplementedLocaleClientServer) TimezoneSet(context.Context, *TimezoneMessage) (*Empty, error)
- func (UnimplementedLocaleClientServer) mustEmbedUnimplementedLocaleClientServer()
- func (UnimplementedLocaleClientServer) testEmbeddedByValue()
- type UnsafeLocaleClientServer
- type localeClientClient
Constants
Section titled “Constants”const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20))
const ( LocaleClient_LocaleSet_FullMethodName = "/locale.LocaleClient/LocaleSet" LocaleClient_TimezoneSet_FullMethodName = "/locale.LocaleClient/TimezoneSet")
This is a compile-time assertion to ensure that this generated file is compatible with the grpc package it is being compiled against. Requires gRPC-Go v1.64.0 or later.
const _ = grpc.SupportPackageIsVersion9
const file_locale_locale_proto_rawDesc = "" + "\n" + "\x13locale/locale.proto\x12\x06locale\"'\n" + "\rLocaleMessage\x12\x16\n" + "\x06Locale\x18\x01 \x01(\tR\x06Locale\"-\n" + "\x0fTimezoneMessage\x12\x1a\n" + "\bTimezone\x18\x01 \x01(\tR\bTimezone\"\a\n" + "\x05Empty2|\n" + "\fLocaleClient\x123\n" + "\tLocaleSet\x12\x15.locale.LocaleMessage\x1a\r.locale.Empty\"\x00\x127\n" + "\vTimezoneSet\x12\x17.locale.TimezoneMessage\x1a\r.locale.Empty\"\x00B\x19Z\x17givc/modules/api/localeb\x06proto3"
Variables
Section titled “Variables”var ( file_locale_locale_proto_rawDescOnce sync.Once file_locale_locale_proto_rawDescData []byte)
var File_locale_locale_proto protoreflect.FileDescriptor
LocaleClient_ServiceDesc is the grpc.ServiceDesc for LocaleClient service. It’s only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var LocaleClient_ServiceDesc = grpc.ServiceDesc{ ServiceName: "locale.LocaleClient", HandlerType: (*LocaleClientServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "LocaleSet", Handler: _LocaleClient_LocaleSet_Handler, }, { MethodName: "TimezoneSet", Handler: _LocaleClient_TimezoneSet_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "locale/locale.proto",}
var file_locale_locale_proto_depIdxs = []int32{ 0, 1, 2, 2, 2, 0, 0, 0, 0,}
var file_locale_locale_proto_goTypes = []any{ (*LocaleMessage)(nil), (*TimezoneMessage)(nil), (*Empty)(nil),}
var file_locale_locale_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
func RegisterLocaleClientServer
Section titled “func RegisterLocaleClientServer”func RegisterLocaleClientServer(s grpc.ServiceRegistrar, srv LocaleClientServer)
func _LocaleClient_LocaleSet_Handler
Section titled “func _LocaleClient_LocaleSet_Handler”func _LocaleClient_LocaleSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)
func _LocaleClient_TimezoneSet_Handler
Section titled “func _LocaleClient_TimezoneSet_Handler”func _LocaleClient_TimezoneSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)
func file_locale_locale_proto_init
Section titled “func file_locale_locale_proto_init”func file_locale_locale_proto_init()
func file_locale_locale_proto_rawDescGZIP
Section titled “func file_locale_locale_proto_rawDescGZIP”func file_locale_locale_proto_rawDescGZIP() []byte
func init
Section titled “func init”func init()
type Empty
Section titled “type Empty”type Empty struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache}
func (*Empty) Descriptor
Section titled “func (*Empty) Descriptor”func (*Empty) Descriptor() ([]byte, []int)
Deprecated: Use Empty.ProtoReflect.Descriptor instead.
func (*Empty) ProtoMessage
Section titled “func (*Empty) ProtoMessage”func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect
Section titled “func (*Empty) ProtoReflect”func (x *Empty) ProtoReflect() protoreflect.Message
func (*Empty) Reset
Section titled “func (*Empty) Reset”func (x *Empty) Reset()
func (*Empty) String
Section titled “func (*Empty) String”func (x *Empty) String() string
type LocaleClientClient
Section titled “type LocaleClientClient”LocaleClientClient is the client API for LocaleClient 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 LocaleClientClient interface { LocaleSet(ctx context.Context, in *LocaleMessage, opts ...grpc.CallOption) (*Empty, error) TimezoneSet(ctx context.Context, in *TimezoneMessage, opts ...grpc.CallOption) (*Empty, error)}
func NewLocaleClientClient
Section titled “func NewLocaleClientClient”func NewLocaleClientClient(cc grpc.ClientConnInterface) LocaleClientClient
type LocaleClientServer
Section titled “type LocaleClientServer”LocaleClientServer is the server API for LocaleClient service. All implementations must embed UnimplementedLocaleClientServer for forward compatibility.
type LocaleClientServer interface { LocaleSet(context.Context, *LocaleMessage) (*Empty, error) TimezoneSet(context.Context, *TimezoneMessage) (*Empty, error) mustEmbedUnimplementedLocaleClientServer()}
type LocaleMessage
Section titled “type LocaleMessage”type LocaleMessage struct { state protoimpl.MessageState `protogen:"open.v1"` Locale string `protobuf:"bytes,1,opt,name=Locale,proto3" json:"Locale,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache}
func (*LocaleMessage) Descriptor
Section titled “func (*LocaleMessage) Descriptor”func (*LocaleMessage) Descriptor() ([]byte, []int)
Deprecated: Use LocaleMessage.ProtoReflect.Descriptor instead.
func (*LocaleMessage) GetLocale
Section titled “func (*LocaleMessage) GetLocale”func (x *LocaleMessage) GetLocale() string
func (*LocaleMessage) ProtoMessage
Section titled “func (*LocaleMessage) ProtoMessage”func (*LocaleMessage) ProtoMessage()
func (*LocaleMessage) ProtoReflect
Section titled “func (*LocaleMessage) ProtoReflect”func (x *LocaleMessage) ProtoReflect() protoreflect.Message
func (*LocaleMessage) Reset
Section titled “func (*LocaleMessage) Reset”func (x *LocaleMessage) Reset()
func (*LocaleMessage) String
Section titled “func (*LocaleMessage) String”func (x *LocaleMessage) String() string
type TimezoneMessage
Section titled “type TimezoneMessage”type TimezoneMessage struct { state protoimpl.MessageState `protogen:"open.v1"` Timezone string `protobuf:"bytes,1,opt,name=Timezone,proto3" json:"Timezone,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache}
func (*TimezoneMessage) Descriptor
Section titled “func (*TimezoneMessage) Descriptor”func (*TimezoneMessage) Descriptor() ([]byte, []int)
Deprecated: Use TimezoneMessage.ProtoReflect.Descriptor instead.
func (*TimezoneMessage) GetTimezone
Section titled “func (*TimezoneMessage) GetTimezone”func (x *TimezoneMessage) GetTimezone() string
func (*TimezoneMessage) ProtoMessage
Section titled “func (*TimezoneMessage) ProtoMessage”func (*TimezoneMessage) ProtoMessage()
func (*TimezoneMessage) ProtoReflect
Section titled “func (*TimezoneMessage) ProtoReflect”func (x *TimezoneMessage) ProtoReflect() protoreflect.Message
func (*TimezoneMessage) Reset
Section titled “func (*TimezoneMessage) Reset”func (x *TimezoneMessage) Reset()
func (*TimezoneMessage) String
Section titled “func (*TimezoneMessage) String”func (x *TimezoneMessage) String() string
type UnimplementedLocaleClientServer
Section titled “type UnimplementedLocaleClientServer”UnimplementedLocaleClientServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
type UnimplementedLocaleClientServer struct{}
func (UnimplementedLocaleClientServer) LocaleSet
Section titled “func (UnimplementedLocaleClientServer) LocaleSet”func (UnimplementedLocaleClientServer) LocaleSet(context.Context, *LocaleMessage) (*Empty, error)
func (UnimplementedLocaleClientServer) TimezoneSet
Section titled “func (UnimplementedLocaleClientServer) TimezoneSet”func (UnimplementedLocaleClientServer) TimezoneSet(context.Context, *TimezoneMessage) (*Empty, error)
func (UnimplementedLocaleClientServer) mustEmbedUnimplementedLocaleClientServer
Section titled “func (UnimplementedLocaleClientServer) mustEmbedUnimplementedLocaleClientServer”func (UnimplementedLocaleClientServer) mustEmbedUnimplementedLocaleClientServer()
func (UnimplementedLocaleClientServer) testEmbeddedByValue
Section titled “func (UnimplementedLocaleClientServer) testEmbeddedByValue”func (UnimplementedLocaleClientServer) testEmbeddedByValue()
type UnsafeLocaleClientServer
Section titled “type UnsafeLocaleClientServer”UnsafeLocaleClientServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LocaleClientServer will result in compilation errors.
type UnsafeLocaleClientServer interface { mustEmbedUnimplementedLocaleClientServer()}
type localeClientClient
Section titled “type localeClientClient”type localeClientClient struct { cc grpc.ClientConnInterface}
func (*localeClientClient) LocaleSet
Section titled “func (*localeClientClient) LocaleSet”func (c *localeClientClient) LocaleSet(ctx context.Context, in *LocaleMessage, opts ...grpc.CallOption) (*Empty, error)
func (*localeClientClient) TimezoneSet
Section titled “func (*localeClientClient) TimezoneSet”func (c *localeClientClient) TimezoneSet(ctx context.Context, in *TimezoneMessage, opts ...grpc.CallOption) (*Empty, error)
Generated by gomarkdoc