Documentation ¶
Index ¶
- Variables
- func RegisterRedirectionServer(s grpc.ServiceRegistrar, srv RedirectionServer)
- type ArrayRedirectData
- func (*ArrayRedirectData) Descriptor() ([]byte, []int)deprecated
- func (x *ArrayRedirectData) GetRedirects() []*RedirectData
- func (*ArrayRedirectData) ProtoMessage()
- func (x *ArrayRedirectData) ProtoReflect() protoreflect.Message
- func (x *ArrayRedirectData) Reset()
- func (x *ArrayRedirectData) String() string
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetIsresponse() bool
- func (x *Message) GetMode() string
- func (x *Message) GetName() string
- func (m *Message) GetShowModeOneof() isMessage_ShowModeOneof
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type Message_Isresponse
- type Message_Mode
- type OrgUrl
- func (*OrgUrl) Descriptor() ([]byte, []int)deprecated
- func (x *OrgUrl) GetEmail() string
- func (x *OrgUrl) GetNotifyTo() string
- func (x *OrgUrl) GetOrg() string
- func (x *OrgUrl) GetSlackUrl() string
- func (*OrgUrl) ProtoMessage()
- func (x *OrgUrl) ProtoReflect() protoreflect.Message
- func (x *OrgUrl) Reset()
- func (x *OrgUrl) String() string
- type RedirectData
- type RedirectData_ValidDate
- func (*RedirectData_ValidDate) Descriptor() ([]byte, []int)deprecated
- func (x *RedirectData_ValidDate) GetBegin() string
- func (x *RedirectData_ValidDate) GetEnd() string
- func (*RedirectData_ValidDate) ProtoMessage()
- func (x *RedirectData_ValidDate) ProtoReflect() protoreflect.Message
- func (x *RedirectData_ValidDate) Reset()
- func (x *RedirectData_ValidDate) String() string
- type RedirectInfo
- func (*RedirectInfo) Descriptor() ([]byte, []int)deprecated
- func (x *RedirectInfo) GetActive() int32
- func (x *RedirectInfo) GetComment() string
- func (x *RedirectInfo) GetHost() string
- func (x *RedirectInfo) GetOrg() string
- func (x *RedirectInfo) GetRedirectPath() string
- func (x *RedirectInfo) GetUser() string
- func (*RedirectInfo) ProtoMessage()
- func (x *RedirectInfo) ProtoReflect() protoreflect.Message
- func (x *RedirectInfo) Reset()
- func (x *RedirectInfo) String() string
- type RedirectPath
- func (*RedirectPath) Descriptor() ([]byte, []int)deprecated
- func (x *RedirectPath) GetNotifyTo() string
- func (x *RedirectPath) GetPath() string
- func (*RedirectPath) ProtoMessage()
- func (x *RedirectPath) ProtoReflect() protoreflect.Message
- func (x *RedirectPath) Reset()
- func (x *RedirectPath) String() string
- type RedirectionClient
- type RedirectionServer
- type UnimplementedRedirectionServer
- func (UnimplementedRedirectionServer) GetInfoByUser(context.Context, *User) (*ArrayRedirectData, error)
- func (UnimplementedRedirectionServer) GetOrgByPath(context.Context, *RedirectPath) (*OrgUrl, error)
- func (UnimplementedRedirectionServer) ListUsers(context.Context, *emptypb.Empty) (*Users, error)
- func (UnimplementedRedirectionServer) PingPongMessage(context.Context, *Message) (*Message, error)
- func (UnimplementedRedirectionServer) RemoveUser(context.Context, *User) (*emptypb.Empty, error)
- func (UnimplementedRedirectionServer) SetInfo(context.Context, *RedirectData) (*OrgUrl, error)
- func (UnimplementedRedirectionServer) SetUser(context.Context, *User) (*User, error)
- type UnsafeRedirectionServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetEmail() string
- func (x *User) GetNotifyTo() string
- func (x *User) GetSlackUrl() string
- func (x *User) GetUser() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type Users
Constants ¶
This section is empty.
Variables ¶
var File_urlmap_proto protoreflect.FileDescriptor
var Redirection_ServiceDesc = grpc.ServiceDesc{ ServiceName: "urlmap.Redirection", HandlerType: (*RedirectionServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetOrgByPath", Handler: _Redirection_GetOrgByPath_Handler, }, { MethodName: "GetInfoByUser", Handler: _Redirection_GetInfoByUser_Handler, }, { MethodName: "SetInfo", Handler: _Redirection_SetInfo_Handler, }, { MethodName: "SetUser", Handler: _Redirection_SetUser_Handler, }, { MethodName: "RemoveUser", Handler: _Redirection_RemoveUser_Handler, }, { MethodName: "ListUsers", Handler: _Redirection_ListUsers_Handler, }, { MethodName: "PingPongMessage", Handler: _Redirection_PingPongMessage_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "urlmap.proto", }
Redirection_ServiceDesc is the grpc.ServiceDesc for Redirection service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRedirectionServer ¶
func RegisterRedirectionServer(s grpc.ServiceRegistrar, srv RedirectionServer)
Types ¶
type ArrayRedirectData ¶
type ArrayRedirectData struct { Redirects []*RedirectData `protobuf:"bytes,1,rep,name=redirects,proto3" json:"redirects,omitempty"` // contains filtered or unexported fields }
func (*ArrayRedirectData) Descriptor
deprecated
func (*ArrayRedirectData) Descriptor() ([]byte, []int)
Deprecated: Use ArrayRedirectData.ProtoReflect.Descriptor instead.
func (*ArrayRedirectData) GetRedirects ¶
func (x *ArrayRedirectData) GetRedirects() []*RedirectData
func (*ArrayRedirectData) ProtoMessage ¶
func (*ArrayRedirectData) ProtoMessage()
func (*ArrayRedirectData) ProtoReflect ¶
func (x *ArrayRedirectData) ProtoReflect() protoreflect.Message
func (*ArrayRedirectData) Reset ¶
func (x *ArrayRedirectData) Reset()
func (*ArrayRedirectData) String ¶
func (x *ArrayRedirectData) String() string
type Message ¶
type Message struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Types that are assignable to ShowModeOneof: // *Message_Mode // *Message_Isresponse ShowModeOneof isMessage_ShowModeOneof `protobuf_oneof:"show_mode_oneof"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetIsresponse ¶
func (*Message) GetShowModeOneof ¶
func (m *Message) GetShowModeOneof() isMessage_ShowModeOneof
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type Message_Isresponse ¶
type Message_Isresponse struct {
Isresponse bool `protobuf:"varint,3,opt,name=isresponse,proto3,oneof"`
}
type Message_Mode ¶
type Message_Mode struct {
Mode string `protobuf:"bytes,2,opt,name=mode,proto3,oneof"`
}
type OrgUrl ¶
type OrgUrl struct { Org string `protobuf:"bytes,1,opt,name=org,proto3" json:"org,omitempty"` NotifyTo string `protobuf:"bytes,2,opt,name=notify_to,json=notifyTo,proto3" json:"notify_to,omitempty"` SlackUrl string `protobuf:"bytes,3,opt,name=slack_url,json=slackUrl,proto3" json:"slack_url,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*OrgUrl) Descriptor
deprecated
func (*OrgUrl) GetNotifyTo ¶
func (*OrgUrl) GetSlackUrl ¶
func (*OrgUrl) ProtoMessage ¶
func (*OrgUrl) ProtoMessage()
func (*OrgUrl) ProtoReflect ¶
func (x *OrgUrl) ProtoReflect() protoreflect.Message
type RedirectData ¶
type RedirectData struct { Redirect *RedirectInfo `protobuf:"bytes,1,opt,name=redirect,proto3" json:"redirect,omitempty"` // contains filtered or unexported fields }
func (*RedirectData) Descriptor
deprecated
func (*RedirectData) Descriptor() ([]byte, []int)
Deprecated: Use RedirectData.ProtoReflect.Descriptor instead.
func (*RedirectData) GetRedirect ¶
func (x *RedirectData) GetRedirect() *RedirectInfo
func (*RedirectData) ProtoMessage ¶
func (*RedirectData) ProtoMessage()
func (*RedirectData) ProtoReflect ¶
func (x *RedirectData) ProtoReflect() protoreflect.Message
func (*RedirectData) Reset ¶
func (x *RedirectData) Reset()
func (*RedirectData) String ¶
func (x *RedirectData) String() string
type RedirectData_ValidDate ¶
type RedirectData_ValidDate struct { Begin string `protobuf:"bytes,1,opt,name=begin,proto3" json:"begin,omitempty"` End string `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` // contains filtered or unexported fields }
func (*RedirectData_ValidDate) Descriptor
deprecated
func (*RedirectData_ValidDate) Descriptor() ([]byte, []int)
Deprecated: Use RedirectData_ValidDate.ProtoReflect.Descriptor instead.
func (*RedirectData_ValidDate) GetBegin ¶
func (x *RedirectData_ValidDate) GetBegin() string
func (*RedirectData_ValidDate) GetEnd ¶
func (x *RedirectData_ValidDate) GetEnd() string
func (*RedirectData_ValidDate) ProtoMessage ¶
func (*RedirectData_ValidDate) ProtoMessage()
func (*RedirectData_ValidDate) ProtoReflect ¶
func (x *RedirectData_ValidDate) ProtoReflect() protoreflect.Message
func (*RedirectData_ValidDate) Reset ¶
func (x *RedirectData_ValidDate) Reset()
func (*RedirectData_ValidDate) String ¶
func (x *RedirectData_ValidDate) String() string
type RedirectInfo ¶
type RedirectInfo struct { User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` RedirectPath string `protobuf:"bytes,2,opt,name=redirectPath,proto3" json:"redirectPath,omitempty"` Org string `protobuf:"bytes,3,opt,name=org,proto3" json:"org,omitempty"` Host string `protobuf:"bytes,4,opt,name=host,proto3" json:"host,omitempty"` Comment string `protobuf:"bytes,5,opt,name=comment,proto3" json:"comment,omitempty"` Active int32 `protobuf:"varint,6,opt,name=active,proto3" json:"active,omitempty"` // contains filtered or unexported fields }
func (*RedirectInfo) Descriptor
deprecated
func (*RedirectInfo) Descriptor() ([]byte, []int)
Deprecated: Use RedirectInfo.ProtoReflect.Descriptor instead.
func (*RedirectInfo) GetActive ¶
func (x *RedirectInfo) GetActive() int32
func (*RedirectInfo) GetComment ¶
func (x *RedirectInfo) GetComment() string
func (*RedirectInfo) GetHost ¶
func (x *RedirectInfo) GetHost() string
func (*RedirectInfo) GetOrg ¶
func (x *RedirectInfo) GetOrg() string
func (*RedirectInfo) GetRedirectPath ¶
func (x *RedirectInfo) GetRedirectPath() string
func (*RedirectInfo) GetUser ¶
func (x *RedirectInfo) GetUser() string
func (*RedirectInfo) ProtoMessage ¶
func (*RedirectInfo) ProtoMessage()
func (*RedirectInfo) ProtoReflect ¶
func (x *RedirectInfo) ProtoReflect() protoreflect.Message
func (*RedirectInfo) Reset ¶
func (x *RedirectInfo) Reset()
func (*RedirectInfo) String ¶
func (x *RedirectInfo) String() string
type RedirectPath ¶
type RedirectPath struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` NotifyTo string `protobuf:"bytes,2,opt,name=notify_to,json=notifyTo,proto3" json:"notify_to,omitempty"` // contains filtered or unexported fields }
func (*RedirectPath) Descriptor
deprecated
func (*RedirectPath) Descriptor() ([]byte, []int)
Deprecated: Use RedirectPath.ProtoReflect.Descriptor instead.
func (*RedirectPath) GetNotifyTo ¶
func (x *RedirectPath) GetNotifyTo() string
func (*RedirectPath) GetPath ¶
func (x *RedirectPath) GetPath() string
func (*RedirectPath) ProtoMessage ¶
func (*RedirectPath) ProtoMessage()
func (*RedirectPath) ProtoReflect ¶
func (x *RedirectPath) ProtoReflect() protoreflect.Message
func (*RedirectPath) Reset ¶
func (x *RedirectPath) Reset()
func (*RedirectPath) String ¶
func (x *RedirectPath) String() string
type RedirectionClient ¶
type RedirectionClient interface { GetOrgByPath(ctx context.Context, in *RedirectPath, opts ...grpc.CallOption) (*OrgUrl, error) GetInfoByUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*ArrayRedirectData, error) SetInfo(ctx context.Context, in *RedirectData, opts ...grpc.CallOption) (*OrgUrl, error) SetUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error) RemoveUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*emptypb.Empty, error) ListUsers(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Users, error) PingPongMessage(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error) }
RedirectionClient is the client API for Redirection 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 NewRedirectionClient ¶
func NewRedirectionClient(cc grpc.ClientConnInterface) RedirectionClient
type RedirectionServer ¶
type RedirectionServer interface { GetOrgByPath(context.Context, *RedirectPath) (*OrgUrl, error) GetInfoByUser(context.Context, *User) (*ArrayRedirectData, error) SetInfo(context.Context, *RedirectData) (*OrgUrl, error) SetUser(context.Context, *User) (*User, error) RemoveUser(context.Context, *User) (*emptypb.Empty, error) ListUsers(context.Context, *emptypb.Empty) (*Users, error) PingPongMessage(context.Context, *Message) (*Message, error) }
RedirectionServer is the server API for Redirection service. All implementations should embed UnimplementedRedirectionServer for forward compatibility
type UnimplementedRedirectionServer ¶
type UnimplementedRedirectionServer struct { }
UnimplementedRedirectionServer should be embedded to have forward compatible implementations.
func (UnimplementedRedirectionServer) GetInfoByUser ¶
func (UnimplementedRedirectionServer) GetInfoByUser(context.Context, *User) (*ArrayRedirectData, error)
func (UnimplementedRedirectionServer) GetOrgByPath ¶
func (UnimplementedRedirectionServer) GetOrgByPath(context.Context, *RedirectPath) (*OrgUrl, error)
func (UnimplementedRedirectionServer) PingPongMessage ¶
func (UnimplementedRedirectionServer) RemoveUser ¶
func (UnimplementedRedirectionServer) SetInfo ¶
func (UnimplementedRedirectionServer) SetInfo(context.Context, *RedirectData) (*OrgUrl, error)
type UnsafeRedirectionServer ¶
type UnsafeRedirectionServer interface {
// contains filtered or unexported methods
}
UnsafeRedirectionServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RedirectionServer will result in compilation errors.
type User ¶
type User struct { User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` NotifyTo string `protobuf:"bytes,2,opt,name=notify_to,json=notifyTo,proto3" json:"notify_to,omitempty"` SlackUrl string `protobuf:"bytes,3,opt,name=slack_url,json=slackUrl,proto3" json:"slack_url,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetNotifyTo ¶
func (*User) GetSlackUrl ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type Users ¶
type Users struct { Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
func (*Users) Descriptor
deprecated
func (*Users) ProtoMessage ¶
func (*Users) ProtoMessage()
func (*Users) ProtoReflect ¶
func (x *Users) ProtoReflect() protoreflect.Message