goagithub

package module
v0.0.0-...-a64cc26 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

README

goa-github

goa.design example from my blog

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOpenapi

func NewOpenapi(logger *log.Logger) openapi.Service

NewOpenapi returns the openapi service implementation.

func NewUsersV1

func NewUsersV1(logger *log.Logger) usersv1.Service

NewUsersV1 returns the users_v1 service implementation.

Types

type SafeMap

type SafeMap struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewSafeMap

func NewSafeMap() *SafeMap

func (*SafeMap) Delete

func (sm *SafeMap) Delete(key string)

func (*SafeMap) List

func (sm *SafeMap) List() []*usersv1.Users

func (*SafeMap) Read

func (sm *SafeMap) Read(key string) (*usersv1.Users, bool)

func (*SafeMap) Write

func (sm *SafeMap) Write(key string, item *usersv1.Users)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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