urlmap

package
v0.0.0-...-e52901f Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_urlmap_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetIsresponse

func (x *Message) GetIsresponse() bool

func (*Message) GetMode

func (x *Message) GetMode() string

func (*Message) GetName

func (x *Message) GetName() string

func (*Message) GetShowModeOneof

func (m *Message) GetShowModeOneof() isMessage_ShowModeOneof

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use OrgUrl.ProtoReflect.Descriptor instead.

func (*OrgUrl) GetEmail

func (x *OrgUrl) GetEmail() string

func (*OrgUrl) GetNotifyTo

func (x *OrgUrl) GetNotifyTo() string

func (*OrgUrl) GetOrg

func (x *OrgUrl) GetOrg() string

func (*OrgUrl) GetSlackUrl

func (x *OrgUrl) GetSlackUrl() string

func (*OrgUrl) ProtoMessage

func (*OrgUrl) ProtoMessage()

func (*OrgUrl) ProtoReflect

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

func (*OrgUrl) Reset

func (x *OrgUrl) Reset()

func (*OrgUrl) String

func (x *OrgUrl) String() string

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.

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) GetOrgByPath

func (UnimplementedRedirectionServer) ListUsers

func (UnimplementedRedirectionServer) PingPongMessage

func (UnimplementedRedirectionServer) RemoveUser

func (UnimplementedRedirectionServer) SetInfo

func (UnimplementedRedirectionServer) SetUser

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) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetNotifyTo

func (x *User) GetNotifyTo() string

func (*User) GetSlackUrl

func (x *User) GetSlackUrl() string

func (*User) GetUser

func (x *User) GetUser() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Users.ProtoReflect.Descriptor instead.

func (*Users) GetUsers

func (x *Users) GetUsers() []*User

func (*Users) ProtoMessage

func (*Users) ProtoMessage()

func (*Users) ProtoReflect

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

func (*Users) Reset

func (x *Users) Reset()

func (*Users) String

func (x *Users) String() string

Directories

Path Synopsis
google.golang.org

Jump to

Keyboard shortcuts

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