adminv1

package
v0.0.0-...-324de33 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

View Source
const (
	Msg_UpdateAdmin_FullMethodName = "/chora.admin.v1.Msg/UpdateAdmin"
)
View Source
const (
	Query_Admin_FullMethodName = "/chora.admin.v1.Query/Admin"
)

Variables

View Source
var File_chora_admin_v1_doc_proto protoreflect.FileDescriptor
View Source
var File_chora_admin_v1_events_proto protoreflect.FileDescriptor
View Source
var File_chora_admin_v1_msg_proto protoreflect.FileDescriptor
View Source
var File_chora_admin_v1_query_proto protoreflect.FileDescriptor
View Source
var File_chora_admin_v1_state_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "chora.admin.v1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateAdmin",
			Handler:    _Msg_UpdateAdmin_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "chora/admin/v1/msg.proto",
}

Msg_ServiceDesc is the grpc.ServiceDesc for Msg 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 Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "chora.admin.v1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Admin",
			Handler:    _Query_Admin_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "chora/admin/v1/query.proto",
}

Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type Admin

type Admin struct {

	// address is the address of the admin account.
	Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

Admin defines the table and properties of the admin.

func (*Admin) Descriptor deprecated

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

Deprecated: Use Admin.ProtoReflect.Descriptor instead.

func (*Admin) GetAddress

func (x *Admin) GetAddress() []byte

func (*Admin) ProtoMessage

func (*Admin) ProtoMessage()

func (*Admin) ProtoReflect

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

func (*Admin) Reset

func (x *Admin) Reset()

func (*Admin) String

func (x *Admin) String() string

type AdminTable

type AdminTable interface {
	Get(ctx context.Context) (*Admin, error)
	Save(ctx context.Context, admin *Admin) error
}

singleton store

func NewAdminTable

func NewAdminTable(db ormtable.Schema) (AdminTable, error)

type EventUpdateAdmin

type EventUpdateAdmin struct {

	// admin is the address of the admin account.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// new_admin is the address of the new admin account.
	NewAdmin string `protobuf:"bytes,2,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty"`
	// contains filtered or unexported fields
}

EventUpdateAdmin is an event emitted when the admin is updated.

func (*EventUpdateAdmin) Descriptor deprecated

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

Deprecated: Use EventUpdateAdmin.ProtoReflect.Descriptor instead.

func (*EventUpdateAdmin) GetAdmin

func (x *EventUpdateAdmin) GetAdmin() string

func (*EventUpdateAdmin) GetNewAdmin

func (x *EventUpdateAdmin) GetNewAdmin() string

func (*EventUpdateAdmin) ProtoMessage

func (*EventUpdateAdmin) ProtoMessage()

func (*EventUpdateAdmin) ProtoReflect

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

func (*EventUpdateAdmin) Reset

func (x *EventUpdateAdmin) Reset()

func (*EventUpdateAdmin) String

func (x *EventUpdateAdmin) String() string

type MsgClient

type MsgClient interface {
	// UpdateAdmin updates the admin account.
	UpdateAdmin(ctx context.Context, in *MsgUpdateAdmin, opts ...grpc.CallOption) (*MsgUpdateAdminResponse, error)
}

MsgClient is the client API for Msg 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.

Msg is the Msg service.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgServer

type MsgServer interface {
	// UpdateAdmin updates the admin account.
	UpdateAdmin(context.Context, *MsgUpdateAdmin) (*MsgUpdateAdminResponse, error)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility.

Msg is the Msg service.

type MsgUpdateAdmin

type MsgUpdateAdmin struct {

	// admin is the address of the admin account.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// new_admin is the address of the new admin account.
	NewAdmin string `protobuf:"bytes,2,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateAdmin is the Msg/UpdateAdmin request type.

func (*MsgUpdateAdmin) Descriptor deprecated

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

Deprecated: Use MsgUpdateAdmin.ProtoReflect.Descriptor instead.

func (*MsgUpdateAdmin) GetAdmin

func (x *MsgUpdateAdmin) GetAdmin() string

func (*MsgUpdateAdmin) GetNewAdmin

func (x *MsgUpdateAdmin) GetNewAdmin() string

func (*MsgUpdateAdmin) ProtoMessage

func (*MsgUpdateAdmin) ProtoMessage()

func (*MsgUpdateAdmin) ProtoReflect

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

func (*MsgUpdateAdmin) Reset

func (x *MsgUpdateAdmin) Reset()

func (*MsgUpdateAdmin) String

func (x *MsgUpdateAdmin) String() string

type MsgUpdateAdminResponse

type MsgUpdateAdminResponse struct {

	// admin is the address of the admin account.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// new_admin is the address of the new admin account.
	NewAdmin string `protobuf:"bytes,2,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateAdminResponse is the Msg/UpdateAdmin response type.

func (*MsgUpdateAdminResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateAdminResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateAdminResponse) GetAdmin

func (x *MsgUpdateAdminResponse) GetAdmin() string

func (*MsgUpdateAdminResponse) GetNewAdmin

func (x *MsgUpdateAdminResponse) GetNewAdmin() string

func (*MsgUpdateAdminResponse) ProtoMessage

func (*MsgUpdateAdminResponse) ProtoMessage()

func (*MsgUpdateAdminResponse) ProtoReflect

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

func (*MsgUpdateAdminResponse) Reset

func (x *MsgUpdateAdminResponse) Reset()

func (*MsgUpdateAdminResponse) String

func (x *MsgUpdateAdminResponse) String() string

type QueryAdminRequest

type QueryAdminRequest struct {
	// contains filtered or unexported fields
}

QueryAdminRequest is the Query/Admin request type.

func (*QueryAdminRequest) Descriptor deprecated

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

Deprecated: Use QueryAdminRequest.ProtoReflect.Descriptor instead.

func (*QueryAdminRequest) ProtoMessage

func (*QueryAdminRequest) ProtoMessage()

func (*QueryAdminRequest) ProtoReflect

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

func (*QueryAdminRequest) Reset

func (x *QueryAdminRequest) Reset()

func (*QueryAdminRequest) String

func (x *QueryAdminRequest) String() string

type QueryAdminResponse

type QueryAdminResponse struct {

	// admin is the address of the admin account.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// contains filtered or unexported fields
}

QueryAdminResponse is the Query/Admin response type.

func (*QueryAdminResponse) Descriptor deprecated

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

Deprecated: Use QueryAdminResponse.ProtoReflect.Descriptor instead.

func (*QueryAdminResponse) GetAdmin

func (x *QueryAdminResponse) GetAdmin() string

func (*QueryAdminResponse) ProtoMessage

func (*QueryAdminResponse) ProtoMessage()

func (*QueryAdminResponse) ProtoReflect

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

func (*QueryAdminResponse) Reset

func (x *QueryAdminResponse) Reset()

func (*QueryAdminResponse) String

func (x *QueryAdminResponse) String() string

type QueryClient

type QueryClient interface {
	// Admin queries the admin account.
	Admin(ctx context.Context, in *QueryAdminRequest, opts ...grpc.CallOption) (*QueryAdminResponse, error)
}

QueryClient is the client API for Query 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.

Query is the Query service.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryServer

type QueryServer interface {
	// Admin queries the admin account.
	Admin(context.Context, *QueryAdminRequest) (*QueryAdminResponse, error)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility.

Query is the Query service.

type StateStore

type StateStore interface {
	AdminTable() AdminTable
	// contains filtered or unexported methods
}

func NewStateStore

func NewStateStore(db ormtable.Schema) (StateStore, error)

type UnimplementedMsgServer

type UnimplementedMsgServer struct{}

UnimplementedMsgServer 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.

func (UnimplementedMsgServer) UpdateAdmin

type UnimplementedQueryServer

type UnimplementedQueryServer struct{}

UnimplementedQueryServer 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.

func (UnimplementedQueryServer) Admin

type UnsafeMsgServer

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

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

type UnsafeQueryServer

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

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

Jump to

Keyboard shortcuts

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