notice

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName = "notice"
)

Variables

View Source
var File_internal_proto_notice_notice_proto protoreflect.FileDescriptor

Functions

func NewNoticeServiceEndpoints added in v0.7.0

func NewNoticeServiceEndpoints() []*api.Endpoint

func RegisterNoticeServiceHandler added in v0.7.0

func RegisterNoticeServiceHandler(s server.Server, hdlr NoticeServiceHandler, opts ...server.HandlerOption) error

Types

type NoticeService added in v0.7.0

type NoticeService interface {
	SendNotice(ctx context.Context, in *SendNoticeRequest, opts ...client.CallOption) (*emptypb.Empty, error)
}

func NewNoticeService added in v0.7.0

func NewNoticeService(name string, c client.Client) NoticeService

type NoticeServiceHandler added in v0.7.0

type NoticeServiceHandler interface {
	SendNotice(context.Context, *SendNoticeRequest, *emptypb.Empty) error
}

type SendNoticeRequest added in v0.7.0

type SendNoticeRequest struct {
	UserId  int64  `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*SendNoticeRequest) Descriptor deprecated added in v0.7.0

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

Deprecated: Use SendNoticeRequest.ProtoReflect.Descriptor instead.

func (*SendNoticeRequest) GetContent added in v0.7.0

func (x *SendNoticeRequest) GetContent() string

func (*SendNoticeRequest) GetUserId added in v0.7.0

func (x *SendNoticeRequest) GetUserId() int64

func (*SendNoticeRequest) ProtoMessage added in v0.7.0

func (*SendNoticeRequest) ProtoMessage()

func (*SendNoticeRequest) ProtoReflect added in v0.7.0

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

func (*SendNoticeRequest) Reset added in v0.7.0

func (x *SendNoticeRequest) Reset()

func (*SendNoticeRequest) String added in v0.7.0

func (x *SendNoticeRequest) String() string

Jump to

Keyboard shortcuts

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