service

package
v0.0.0-...-0543956 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrGetTagFailed = errcode.NewError(200101, "获取标签失败")

ErrGetTagFailed error fetching tags

Functions

This section is empty.

Types

type GreeterService

type GreeterService struct {
	pbgen.UnimplementedGreeterServer
}

GreeterService provides a Greeter service

func NewGreeterService

func NewGreeterService() *GreeterService

NewGreeterService creates a new Greeter service

func (*GreeterService) Greet

Greet gives a Greeter reply

func (*GreeterService) GreetRecord

func (s *GreeterService) GreetRecord(stream pbgen.Greeter_GreetRecordServer) error

GreetRecord send greet reply from client stream

func (*GreeterService) GreetStream

GreetStream gives a stream Greeter reply

type TagService

type TagService struct {
	pbgen.UnimplementedTagServiceServer
}

TagService provides a Tag service

func NewTagService

func NewTagService() *TagService

NewTagService creates a new TagService instance

func (*TagService) GetTags

GetTags return list of tags

Jump to

Keyboard shortcuts

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